Skip to content

Commit

Permalink
fix(form-service): use correct api value for resource types
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuge committed Jan 28, 2025
1 parent 423d828 commit d7b3c3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions apps/directory-service/src/directory/router/resource.swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ components:
type: string
_embedded:
type: object
TagSpecification:
type: object
properties:
label:
type: string
value:
type: string
ResourceSpecification:
type: object
properties:
Expand All @@ -53,7 +60,7 @@ components:
type: string
enum: [tag-resource]
tag:
$ref: "#/components/schemas/Tag"
$ref: "#/components/schemas/TagSpecification"
resource:
$ref: "#/components/schemas/ResourceSpecification"
required: [operation, tag, resource]
Expand All @@ -64,7 +71,7 @@ components:
type: string
enum: [untag-resource]
tag:
$ref: "#/components/schemas/Tag"
$ref: "#/components/schemas/TagSpecification"
resource:
$ref: "#/components/schemas/ResourceSpecification"
required: [operation, tag, resource]
Expand Down
2 changes: 1 addition & 1 deletion apps/form-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const initializeApp = async (): Promise<express.Application> => {
{
serviceId: adspId`urn:ads:platform:directory-service`,
configuration: {
[`${serviceId}:v2`]: {
[`${serviceId}:v1`]: {
resourceTypes: [
{
type: 'form',
Expand Down

0 comments on commit d7b3c3c

Please sign in to comment.