Skip to content

[template-starter] Pair down schemas #9

@FossPrime

Description

@FossPrime

https://github.com/feathersjs/playground/blob/template-starter/src/services/users/users.schema.ts

Has around 50 lines of repetitive code.

Room for improvement

  • Use default validator
  • Remove $id when not used
  • use optional id to query and patch schema closer to a one line default

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