Open Tiberiu02 opened 2 years ago
@YousefED Do you think you could you take a look over this? It would be very useful for our project
How does this compare with what ts-json-schema-generator does?
Didn't know about ts-json-schema-generator, let me take a look
When using the
typeOf
keyword, type definitions of all functions will now have a "parameters" field containing a list of the type definitions of all function parameters.This is very useful for fully automated runtime type checking in RPC architectures.
Example:
Code: (Note the use of various function syntaxes)
Produced schema: (note the parameters lists)