Skip to content

Rule suggestie: Operation id's must be in PascalCase (upper camel case) #197

@erwinkramer

Description

@erwinkramer

Suggestie:

 casing-operation-id-requires-pascal-case:
    description: Operation id's must be in PascalCase (upper camel case).
    message: Operation id is not in PascalCase.
    severity: warn
    given: "$..operationId"
    then:
      function: pattern #or casing func https://docs.stoplight.io/docs/spectral/cb95cf0d26b83-core-functions#casing
      functionOptions:
        match: "^[A-Z](([a-z0-9]+[A-Z]?)*)$"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Scope: KleinKleine wijzigingen met beperkte scopeStatus: In onderzoekTer voorbereiding van uitwerking is onderzoek nodig.Type: WijzigingInhoudelijke wijziging op een standaard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions