generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from grahampacker-ms/strip-ref-from-pattern
Issue #95 - Strip from patterns when validating with spectral
- Loading branch information
Showing
3 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
cli/test_fixtures/api-gateway-with-no-relationships.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/calm.json", | ||
"$id": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/pattern/api-gateway", | ||
"title": "API Gateway Pattern", | ||
"type": "object", | ||
"properties": { | ||
"nodes": { | ||
"type": "array", | ||
"minItems": 3, | ||
"prefixItems": [ | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"ingress-host": { | ||
"type": "string" | ||
}, | ||
"ingress-port": { | ||
"type": "integer" | ||
}, | ||
"well-known-endpoint": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"const": "The API Gateway used to verify authorization and access to downstream system" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "API Gateway" | ||
}, | ||
"unique-id": { | ||
"const": "api-gateway" | ||
} | ||
}, | ||
"required": [ | ||
"ingress-host", | ||
"ingress-port", | ||
"well-known-endpoint" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"description": { | ||
"const": "The API Consumer making an authenticated and authorized request" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "Python Based API Consumer" | ||
}, | ||
"unique-id": { | ||
"const": "api-consumer" | ||
} | ||
} | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"host": { | ||
"type": "string" | ||
}, | ||
"port": { | ||
"type": "integer" | ||
}, | ||
"description": { | ||
"const": "The API Producer serving content" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "Java Based API Producer" | ||
}, | ||
"unique-id": { | ||
"const": "api-producer" | ||
} | ||
}, | ||
"required": [ | ||
"host", | ||
"port" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"description": { | ||
"const": "The Identity Provider used to verify the bearer token" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "Identity Provider" | ||
}, | ||
"unique-id": { | ||
"const": "idp" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"nodes", | ||
"relationships" | ||
] | ||
} |