openapi-contrib / openapi-schema-to-json-schema

Due to the OpenAPI v3.0 and JSON Schema discrepancy, you can use this JS library to convert OpenAPI Schema objects to proper JSON Schema.
https://www.npmjs.com/package/@openapi-contrib/openapi-schema-to-json-schema
MIT License
242 stars 20 forks source link

Request to support propertyNames for additional Properties Keys #37

Closed aeneal closed 2 years ago

aeneal commented 2 years ago

in the same way you are supporting x-patternProperties it would be great if we could do the same for setting the names eg

"Parent": { "type": "object", "propertyNames": { "enum": ["foo", "bar"] }, "additionalProperties": { "$ref": "#/components/schemas/Child" } }

aeneal commented 2 years ago

closing it, this is actually supported in openapi 3.1.0