Pierre Fenoll

Results 246 comments of Pierre Fenoll

Hi @panush please use backticks to share your YAML. See https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code Am I correct in assuming that components' Cat's `offspring` field is empty?

I investigated a bit but ran out of time. FYI this can be used as a temporary work around: ```yaml components: schemas: Kitten: $ref: '#/components/schemas/Cat' # before allOf: # after...

From https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#external-documentation-object > url | string | REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL. Is it not possible for you to...

There's just no way to differentiate the intent here. Either validation stays the same (which doesn't help you) or it (wrongly) accepts unset URLs... The only way out I see...

This won't work today: the header content-type matching logic for registered body decoders does not handle wildcards yet. https://github.com/getkin/kin-openapi/blob/d54840d41c35ccd1e55a27df3ea852eabb3864bf/openapi3filter/req_resp_decoder.go#L825-L826 You should be able to achieve what you want by adding...

Quote it to ensure it gets parsed as a string as a workaround in the meantime. I'm not sure whether the openapi spec or the json schema spec actually specifies...

@scotchneat #487 should be the way to go, once I find time to review it and move it forward.

Hi! I'm sorry but this page is lying. Here's the actual specification: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#dataTypeFormat and there's no mention of `date` nor `date-time` string formats I could find. Keep in mind that...

OpenAPIv2 actually does define these string formats https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#data-types just FYI.

Indeed it's `encoding/json`'s fault IMO and I am missing where encoding/json.Unmarshal covers decoding multiple map keys. I'm not sure the JSON "initial spec" (at least) covers it. There are many...