You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note package.json requires semantic numbering of the format (##.##.##). I can't put RC in the version
I'm working on releasing the next version of CWMSjs
To include all (most) of the new endpoints
Running the openapi generator for TypeScript and targeting the swagger.json spec json located here
gives a handful of errors (seen below)
I thought it would be worth bringing it up here especially if the java and jython generators have not been ran yet.
Background on how i'm getting the errors
TypeScript will do the type checking when you run tsc and transpile to JavaScript so that you don't have as many runtime errors in the browser (types/etc are checked on compile). Below is the output of that.
In some cases I was able to make the changes to the swagger schema and then run the generator + tsc again and the errors would be fixed. I believe this confirms it to be an issue with the swagger schema (annotations?)
Attempted error fixes to get the generation to complete
Renaming all TimeSeries to Timeseries
Did a CTRL +F (case sensitive) TimeSeries and replace ALL with Timeseries
This removed all TS errors
As for the remaining errors I tried doing the following:
Changed AbstractRatingMetadata > discriminator > propertyName from "rating-type" to "ratingType"
No Change to remaining errors
Ended up removing all endpoints and references to the other errors for now.
CWMSjs
Note package.json requires semantic numbering of the format (##.##.##). I can't put RC in the version
I'm working on releasing the next version of
CWMSjs
To include all (most) of the new endpoints
Running the openapi generator for TypeScript and targeting the swagger.json spec json located here
gives a handful of errors (seen below)
I thought it would be worth bringing it up here especially if the java and jython generators have not been ran yet.
Background on how i'm getting the errors
TypeScript will do the type checking when you run
tsc
and transpile to JavaScript so that you don't have as many runtime errors in the browser (types/etc are checked on compile). Below is the output of that.In some cases I was able to make the changes to the
swagger schema
and then run the generator + tsc again and the errors would be fixed. I believe this confirms it to be an issue with the swagger schema (annotations?)Attempted error fixes to get the generation to complete
Renaming all TimeSeries to Timeseries
As for the remaining errors I tried doing the following:
AbstractRatingMetadata > discriminator > propertyName
from"rating-type"
to"ratingType"
Ended up removing all endpoints and references to the other errors for now.
Related to
Error output running
tsc
against generated.ts
filesThe text was updated successfully, but these errors were encountered: