Comments (4)
It is interesting it shows up in their examples because if you look at this page https://swagger.io/docs/specification/data-models/keywords/ it says that patternProperties is unsupported. Looking through the specification https://swagger.io/specification/#schema-object seems to support that it isn't supported by OpenAPI 3.
from openapiv3.
Oh, you are right. What i tested was wrong. You can close.
from openapiv3.
Thank you.
from openapiv3.
Curiously the official docs make no mention of patternProperties
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md
The file you linked to (https://github.com/OAI/OpenAPI-Specification/tree/main/schemas/v3.0) is actually the schema for OpenAPI v3.0.x documents and note that it doesn't include patternProperties
:
$ jq <schemas/v3.0/schema.json '.definitions.Schema.properties | keys'
[
"additionalProperties",
"allOf",
"anyOf",
"default",
"deprecated",
"description",
"discriminator",
"enum",
"example",
"exclusiveMaximum",
"exclusiveMinimum",
"externalDocs",
"format",
"items",
"maxItems",
"maxLength",
"maxProperties",
"maximum",
"minItems",
"minLength",
"minProperties",
"minimum",
"multipleOf",
"not",
"nullable",
"oneOf",
"pattern",
"properties",
"readOnly",
"required",
"title",
"type",
"uniqueItems",
"writeOnly",
"xml"
]
from openapiv3.
Related Issues (20)
- Extensions in `Schema`
- Support for OpenAPI v3.1.x HOT 16
- Two Parameter::Query fields are serialized in snake case
- `ArrayType.items` shouldn't be `Option<...>` HOT 4
- Some vectors contain Option<?> HOT 2
- OAuth2 SecuritySchema flow confusion
- Please tag a release with #60 HOT 2
- Schema type Object with OneOf HOT 7
- Keep a changelog
- callbacks should be part of `Operation` object.
- Reference variant should support description and summary fields. HOT 1
- Code examples please HOT 1
- Missing pathItems in components HOT 1
- Schema extensions are not parsed HOT 4
- Version incompatibility when upgrading to 1.0.3 HOT 4
- Derive `Hash` for all types HOT 3
- Add support for dereferencing `$ref`s HOT 1
- new major version HOT 4
- data did not match any variant of untagged enum ReferenceOr HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapiv3.