We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pattern for date-time is populated as the example instead of the current date-time in the previous OpenAPI version.
Example Swagger/OpenAPI definition:
{ "openapi": "3.1.0", "info": { "title": "OpenAPI definition", "version": "v0" }, "servers": [ { "url": "http://localhost:8080", "description": "Generated server url" } ], "tags": [ { "name": "Dummy", "description": "Dummy Controller" } ], "paths": { "/dummy/execute": { "post": { "tags": [ "Dummy" ], "operationId": "run", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DummyDTO" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "type": "array", "items": { "type": "string" } } } } } } } } }, "components": { "schemas": { "DummyDTO": { "type": "object", "properties": { "dummyDate": { "type": "string", "format": "date-time", "description": "Some Dummy Date", "pattern": "Some Pattern Here" } } } } } }
It is expected that the current date-time is populated as the example.
{ "openapi": "3.0.1", "info": { "title": "OpenAPI definition", "version": "v0" }, "servers": [ { "url": "http://localhost:8080", "description": "Generated server url" } ], "tags": [ { "name": "Dummy", "description": "Dummy Controller" } ], "paths": { "/dummy/execute": { "post": { "tags": [ "Dummy" ], "operationId": "run", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DummyDTO" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "type": "array", "items": { "type": "string" } } } } } } } } }, "components": { "schemas": { "DummyDTO": { "type": "object", "properties": { "dummyDate": { "pattern": "Some Pattern Here", "type": "string", "description": "Some Dummy Date", "format": "date-time" } } } } } }
Example with 3.0.1
Example with 3.1.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Q&A (please complete the following information)
Content & configuration
The pattern for date-time is populated as the example instead of the current date-time in the previous OpenAPI version.
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
It is expected that the current date-time is populated as the example.
Expected behavior
Example with 3.0.1
Screenshots
Example with 3.1.0
The text was updated successfully, but these errors were encountered: