You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use NSwag to build a C# client for the Lightroom API off of the swagger doc in this repository. It is unhappy with the path paths['/v2/catalogs/{catalog_id}/assets/{asset_id}'].put.parameters[4].schema.properties.payload.properties.captureDate.required:
I am trying to use NSwag to build a C# client for the Lightroom API off of the swagger doc in this repository. It is unhappy with the path
paths['/v2/catalogs/{catalog_id}/assets/{asset_id}'].put.parameters[4].schema.properties.payload.properties.captureDate.required
:lightroom-partner-apis/docs/api/LightroomPartnerAPIsSpec.json
Line 597 in 643d494
According to the OpenAPI 2.0 spec, this required field should actually be an array of strings. The schema object is defined here: https://swagger.io/specification/v2/#schemaObject which references the Json Schema Validation spec here: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#page-12 which says:
I'm not sure how an array of strings for a "required" field is useful to anybody, but technically, the document is invalid according to the spec.
The text was updated successfully, but these errors were encountered: