Skip to content

Commit

Permalink
Fixed TriggerProperty OpenAPI definition
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
  • Loading branch information
Coduz committed Jul 1, 2022
1 parent 46eb9a5 commit feae443
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Expand Up @@ -67,7 +67,7 @@ components:
triggerProperties:
type: array
items:
$ref: '../triggerDefinition/triggerDefinition.yaml#/components/schemas/triggerDefinitionProperty'
$ref: '../triggerDefinition/triggerDefinition.yaml#/components/schemas/triggerProperty'
example:
type: triggerCreator
name: A trigger
Expand Down
4 changes: 2 additions & 2 deletions rest-api/resources/src/main/resources/openapi/openapi.yaml
Expand Up @@ -900,8 +900,8 @@ components:
tagListResult:
$ref: './tag/tag.yaml#/components/schemas/tagListResult'
### Trigger Definition Entities ###
triggerDefinitionProperty:
$ref: './triggerDefinition/triggerDefinition.yaml#/components/schemas/triggerDefinitionProperty'
triggerProperty:
$ref: './triggerDefinition/triggerDefinition.yaml#/components/schemas/triggerProperty'
triggerDefinition:
$ref: './triggerDefinition/triggerDefinition.yaml#/components/schemas/triggerDefinition'
triggerDefinitionListResult:
Expand Down
Expand Up @@ -23,7 +23,7 @@ components:
$ref: '../openapi.yaml#/components/schemas/kapuaId'
required: true
schemas:
triggerDefinitionProperty:
triggerProperty:
type: object
properties:
name:
Expand All @@ -32,9 +32,14 @@ components:
type: string
propertyValue:
type: string
required:
- name
- propertyType
- propertyValue
example:
name: jobId
propertyType: org.eclipse.kapua.model.id.KapuaId
propertyValue: AQ
triggerDefinition:
allOf:
- $ref: '../openapi.yaml#/components/schemas/kapuaNamedEntity'
Expand All @@ -50,7 +55,7 @@ components:
triggerProperties:
type: array
items:
$ref: '#/components/schemas/triggerDefinitionProperty'
$ref: '#/components/schemas/triggerProperty'
example:
type: triggerDefinition
id: AQ
Expand Down

0 comments on commit feae443

Please sign in to comment.