-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
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
[BUG] Date format published with timestamp. #685
Comments
|
Hi, The latest version is currently v6.0.1.2 - so I assume the maintainers would want you to verify if it's present in the current release or not. Your version is from March of this year so it's pretty old now. |
Also, this is beyond the scope of our product. We take the OpenAPI spec and pass it to Azure API Management as is. How it chooses to handle dates is out of our control. |
@guythetechie the problem is the Microsoft.OpenApi.Readers package version that was used in APIOps v5.x. APIOps v5.1.4 uses Microsoft.OpenApi.Readers v1.4.1, which changes the date format to datetime format in The latest APIOps version uses Microsoft.OpenApi.Readers 1.6.17 which doesn't produce this error anymore. Might also be interesting for your release notes, since users of previous versions might rely on the "previous" serialization behaviour. |
Release version
v5.1.4
Describe the bug
When an openapi specification is published with parameters having format
date
then these properties are published to include a timestamp.E.g. if the property looks like
"startDate": "2024-10-03"
it is published as"startDate": "2024-10-03T12:00:00.0000000+00:00"
Expected behavior
The expected behaviour is to publish api specifications with schema properties having the format
date
without a timestamp in it.Actual behavior
The actual behaviour is to publish properties with the format
date
without a timestamp.Reproduction Steps
contact-api-spec.json
Use the attached api specification and update any existing api managed by apiops
Extract the api using the exract pipeline.
Merge the pull request created by the extract pipeline and allow apiops to publish the api.
Screenshot of the exported specifications having date in the correct format:
Screenshot of the published api on api management after the publish pipeline executes successfully:
The text was updated successfully, but these errors were encountered: