Skip to content

Support generating values of type URL from JSON Schema #514

Open
@Kyle-Ye

Description

@Kyle-Ye

Motivation

{
	"time": "2023-12-06T20:45:17.385Z",
	"url": "https://example.com"
}

For the above json data. The currently valid openapi.yml will use string to represent "time" and "url".

I'm hoping to somehow add support for URL and Date types directly on swift-openapi-generator.

Proposed solution

  1. Add a variant for OpenAPI 3.1 to allow "url" and "date" for type. (Not recommended)

  2. ...

Alternatives considered

None

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/generatorAffects: plugin, CLI, config file.kind/enhancementImprovements to existing feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions