Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Test Annotations/Complex-08 appears to be incorrect #141

Open
kdubb opened this issue Jan 5, 2021 · 0 comments
Open

Test Annotations/Complex-08 appears to be incorrect #141

kdubb opened this issue Jan 5, 2021 · 0 comments

Comments

@kdubb
Copy link

kdubb commented Jan 5, 2021

In lib.raml the bindingDefinition annotation type is defined as follows (notice the lack of additionalProperties: false):

annotationTypes:
  bindingDefinition:
    displayName: BindingDefinition
    type: array
    items:
      properties:
        method:
          type: string
          required: true
          description: This field defines to which method the binding applies
          enum: ["GET", "PATCH", "POST", "PUT", "DELETE"]
        input:
          type: string
          required: true
          description: The binding related to the field when used as an input
          enum: ["OPTIONAL", "REQUIRED", "NONE"]
        output:
          type: string
          required: true
          description: The binding related to the field when used as an output
          enum: ["OPTIONAL", "REQUIRED", "NONE"]

The "invalid" test tries to make it invalid by adding an extra property hi. Without the additionalProperties: false in the definition this seems to be a valid test even though it expects it to be invalid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant