-
Notifications
You must be signed in to change notification settings - Fork 2
How to use custom resource types in schema generation? #24
Description
Hi,
Thanks for the lib. I was wondering how does one uses this with custom resource types?
The documentation mentions
Resource Type Limitations:
Default resource types (User, UserGroup, Application) are automatically included
Custom resource types must be referenced in action definitions
If a resource type is referenced but not defined in schemas, it gets an empty record shape
I am not sure I understand what is meant with "Custom resource types must be referenced in action definitions"?
I tried to generate a schema using the PetStore API test file that exists in the repository, and while the schema is correct, all the actions have the field appliesTo.resourceTypes set to Application. I would expect this value to either be Pet, User, or Application.
Thanks