Skip to content

Commit

Permalink
Merge 4fa2aa1 into b75c20c
Browse files Browse the repository at this point in the history
  • Loading branch information
Coduz authored Jul 1, 2022
2 parents b75c20c + 4fa2aa1 commit c46ef63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,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
Original file line number Diff line number Diff line change
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 c46ef63

Please sign in to comment.