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
Before I start, I just wanted to say I really love this project, especially its full integration with JSON Schema!
I was wondering how easy it would be to generate multiple files instead of one single file. Assuming I have multiple top-level OpenRPC descriptions, as well as multiple JSON Schema files referenced via $ref in e.g. the components section from the OpenRPC schemas, how difficult it would be to generate them in separate files and/or modules depending on target language and add the appropriate imports when external ones are referenced?
My goal is to get some autogenerated stub classes that contain decorators describing params and return types including the validation rules. Other types would ideally also be represented as "classterfaces" (microsoft/TypeScript#27519 (comment)) which would allow attaching extra validation metadata to them.
Not saying it would necessarily belong to this project, was just wondering what tools would you recommend that I use in order to achieve something like the above. From a quick glance, openrpc-schema-js looks like the right package to get started, but I'm not sure if the model preserves the original location of all the resolved schema references.
The text was updated successfully, but these errors were encountered:
Before I start, I just wanted to say I really love this project, especially its full integration with JSON Schema!
I was wondering how easy it would be to generate multiple files instead of one single file. Assuming I have multiple top-level OpenRPC descriptions, as well as multiple JSON Schema files referenced via $ref in e.g. the components section from the OpenRPC schemas, how difficult it would be to generate them in separate files and/or modules depending on target language and add the appropriate imports when external ones are referenced?
My goal is to get some autogenerated stub classes that contain decorators describing params and return types including the validation rules. Other types would ideally also be represented as "classterfaces" (microsoft/TypeScript#27519 (comment)) which would allow attaching extra validation metadata to them.
Not saying it would necessarily belong to this project, was just wondering what tools would you recommend that I use in order to achieve something like the above. From a quick glance, openrpc-schema-js looks like the right package to get started, but I'm not sure if the model preserves the original location of all the resolved schema references.
The text was updated successfully, but these errors were encountered: