-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
fix(typescript-generator)!: handle 'date' and 'date-time' for 'string'… #2192
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for modelina canceled.
|
@roman-supy-io remember to update all the test etc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides updating snapshots can you add two test to
test('should render type', () => { |
You can use the Java tests as guideline: https://github.com/asyncapi/modelina/blob/master/test/generators/java/JavaConstrainer.spec.ts#L329
@jonaslagoni tests updated |
@roman-supy-io did you run |
|
@jonaslagoni all fixed |
@roman-supy-io which docker image specifically are you referring to? |
Regardless, because this is a breaking change, I dont think any automatic updates will happen. |
@jonaslagoni right now we're using https://hub.docker.com/r/asyncapi/cli on our CI to generate Typescript contracts UPD: oh, ok, so when can we expect this to be released? |
@roman-supy-io you can read more about it here: https://github.com/asyncapi/modelina?tab=readme-ov-file#versioning-and-maintenance Alternatively you can add a flag specifying an enum of types for date formats 🤔 i.e. |
… data type
Description
Date type was not properly handled and resulted into string generated type output
This fixes the issue
Related Issue
Checklist
npm run lint
).npm run test
).Additional Notes