-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: automatically generate OSCAL types from JSON Schema #765
Conversation
This adds a new package `@easydynamics/oscal-types` that will convert the underlying OSCAL JSON schema to TypeScipt type definitions. It also replaces two existing instances of type information in `oscal-react-library` with these new types: Properties and BackMater within `oscal-utils`. The types are represented _literally_. This includes things like `media-type` rather than making it the friendlier `mediaType`. Additionally, to encourage good hygiene, all types are represented as `readonly`.
To do:
|
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.
This looks really good so far and is super exciting! Is there anything else that needs to be done before moving this to review?
… into kyle/autogenerate-types-package
Co-authored-by: Kyle Laker <klaker@easydynamics.com>
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.
This is a super cool change and I got to learn more about lerna while reviewing!
Opps did not mean to approve twice...
af425e3
to
d42b209
Compare
… into kyle/autogenerate-types-package
d42b209
to
21626b8
Compare
This adds a new package
@easydynamics/oscal-types
that will convertthe underlying OSCAL JSON schema to TypeScipt type definitions. It also
replaces two existing instances of type information in
oscal-react-library
with these new types: Properties and BackMater within
oscal-utils
.The types are represented literally. This includes things like
media-type
rather than making it the friendliermediaType
.Additionally, to encourage good hygiene, all types are represented as
readonly
.Closes: #763