Skip to content

Feature Request: Omit specific fields from model to json-schema #1551

@hongkongkiwi

Description

@hongkongkiwi

Hi there,

I'd like the option to omit some fields specifically when generating the schema.

Right now, my model contains an updatedAt field, it is compulsory, but I want to specifically exclude this from the schema as it's automatically generated from the database.

In this specific case, I know I can simply change the field to be optional, but I'd really like the option to omit specific fields, perhaps with a comment like some other validators do? Or something? That would give a little control over the json-schema without messing with the DB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions