Skip to content
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

Date Time format are suppressed to lower case #995

Closed
murari-goswami opened this issue Jun 23, 2023 · 3 comments
Closed

Date Time format are suppressed to lower case #995

murari-goswami opened this issue Jun 23, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@murari-goswami
Copy link

Describe the bug

I got an issue with rendering the Date-Time schema from AsnycAPI to Docuentation. We use the datetime format as YYYY-MM-DDThh:mm:ss.sssZ. However, after rendering through Doc generator it shows the format as yyyy-mm-ddthh:mm:ss.sssz in the documentation of specification. This can give a misleading information as uppercase 'Z' has been an indication of UTC format where as lowercae 'z' is only signifies the offset. It seems the doc generator converts explicitly this to lower case.

How to Reproduce

Run generator to generate document from any specification having date time format as : YYYY-MM-DDThh:mm:ss.sssZ.

Expected behavior

The documentation generated from specification should have the same date time format YYYY-MM-DDThh:mm:ss.sssZ.

@murari-goswami murari-goswami added the bug Something isn't working label Jun 23, 2023
@derberg
Copy link
Member

derberg commented Jun 27, 2023

how do you specify this date that renders incorrect? as example?

      payload:
        type: string
        format: date-time
        examples:
        - 2023-06-30T00:00:00.000Z

please provide more details and also show screen shots

@AyushNautiyalDeveloper
Copy link

AyushNautiyalDeveloper commented Sep 12, 2023

i am recieving correct date-time format.
image
@murari-goswami cant reproduce the bug. please give some more context.

@derberg
Copy link
Member

derberg commented Oct 11, 2023

closing as no more details provided

@derberg derberg closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants