Skip to content

Schema field check #4

@jharmn

Description

@jharmn

Recurse all model fields, and see if name matches in checkstyle schema/properties. If so, ensure format and/or schemaRef match up to spec.

  schema:
    properties:
      - name: "^.*\\_?id"
        format: uuid
      - name: "image"
        format: uuid
      - name: "currency_code"
        format: currency
        schemaRef: "#/definitions/CurrencyCode"
      - name: "^.*\\_?uuid"
        format: uuid
      - name: "^.*\\_?email"
        format: email

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions