Skip to content

How to use custom resource types in schema generation? #24

@lodi-g

Description

@lodi-g

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions