Closed bhaeussermann closed 1 hour ago
https://spec.openapis.org/oas/latest.html#fixed-fields-25
https://github.com/OAI/OpenAPI-Specification/blob/main/schemas%2Fv3.1%2Fschema.yaml#L847
The schema doesn't appear to require the field for the implicit grant.
The spec says it's required but doesn't apply to implicit.
Will look into updating.
Thanks for the report.
When I try to deserialize the OpenAPI 3.1 Petstore sample definition from Swagger Editor as follows:
this fails with the exception
System.Text.Json.JsonException: `tokenUrl` is required for oauth flow object
I went ahead and attempted to check whether the spec satisfies the schema using JsonSchema.Net. For this I converted the spec to JSON using Swagger Editor and removed all the irrelevant parts which left me with
(This still yields the same error in Graeae).
When I validate the spec against the Open API 3.1 schema using JsonSchema.Net:
the validation passes.
I need to use Graeae for the validation as the program needs to be able to validate OpenAPI 3.0 schemas as well and this doesn't work with JsonSchema.Net.