Skip to content

zmodel schema validation key names: string and int #744

Closed
@umdstu

Description

@umdstu

Description and expected behavior
I'm trying to create a plugin similar to the @zenstackhq/openapi plugin. When I'm passing the meta object to the plugin in an object, I appear to be limited in key name types. Unlike others that ran into reserved word issues, this is much more general. The validator rejects key names if they are ints, strings, dashes, or start with $. I'm using strings because int's and dashes aren't valid keys.

Screenshots
Screenshot 2023-10-09 at 8 55 23 AM

Environment (please complete the following information):

  • ZenStack version: 1.0.2
  • Prisma version: 4.16.2
  • Database type: Postgresql

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions