Skip to content

Commit b4c0098

Browse files
author
AWS
committed
Schemas Update: Added support for schemas of type JSONSchemaDraft4. Added ExportSchema API that converts schemas in AWS Events registry and Discovered schemas from OpenApi3 to JSONSchemaDraft4.
1 parent 34963aa commit b4c0098

File tree

2 files changed

+133
-1
lines changed

2 files changed

+133
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Schemas",
4+
"description": "Added support for schemas of type JSONSchemaDraft4. Added ExportSchema API that converts schemas in AWS Events registry and Discovered schemas from OpenApi3 to JSONSchemaDraft4."
5+
}

services/schemas/src/main/resources/codegen-resources/service-2.json

Lines changed: 128 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,51 @@
487487
],
488488
"documentation": "<p>Retrieve the schema definition.</p>"
489489
},
490+
"ExportSchema": {
491+
"name": "ExportSchema",
492+
"http": {
493+
"method": "GET",
494+
"requestUri": "/v1/registries/name/{registryName}/schemas/name/{schemaName}/export",
495+
"responseCode": 200
496+
},
497+
"input": {
498+
"shape": "ExportSchemaRequest"
499+
},
500+
"output": {
501+
"shape": "ExportSchemaResponse",
502+
"documentation": "<p>200 response</p>"
503+
},
504+
"errors": [
505+
{
506+
"shape": "BadRequestException",
507+
"documentation": "<p>400 response</p>"
508+
},
509+
{
510+
"shape": "UnauthorizedException",
511+
"documentation": "<p>401 response</p>"
512+
},
513+
{
514+
"shape": "InternalServerErrorException",
515+
"documentation": "<p>500 response</p>"
516+
},
517+
{
518+
"shape": "ForbiddenException",
519+
"documentation": "<p>403 response</p>"
520+
},
521+
{
522+
"shape": "NotFoundException",
523+
"documentation": "<p>404 response</p>"
524+
},
525+
{
526+
"shape": "ServiceUnavailableException",
527+
"documentation": "<p>503 response</p>"
528+
},
529+
{
530+
"shape": "TooManyRequestsException",
531+
"documentation": "<p>429 response</p>"
532+
}
533+
]
534+
},
490535
"GetCodeBindingSource": {
491536
"name": "GetCodeBindingSource",
492537
"http": {
@@ -1930,6 +1975,79 @@
19301975
"Code"
19311976
]
19321977
},
1978+
"ExportSchemaOutput": {
1979+
"type": "structure",
1980+
"members": {
1981+
"Content": {
1982+
"shape": "__string"
1983+
},
1984+
"SchemaArn": {
1985+
"shape": "__string"
1986+
},
1987+
"SchemaName": {
1988+
"shape": "__string"
1989+
},
1990+
"SchemaVersion": {
1991+
"shape": "__string"
1992+
},
1993+
"Type": {
1994+
"shape": "__string"
1995+
}
1996+
}
1997+
},
1998+
"ExportSchemaRequest": {
1999+
"type": "structure",
2000+
"members": {
2001+
"RegistryName": {
2002+
"shape": "__string",
2003+
"location": "uri",
2004+
"locationName": "registryName",
2005+
"documentation": "<p>The name of the registry.</p>"
2006+
},
2007+
"SchemaName": {
2008+
"shape": "__string",
2009+
"location": "uri",
2010+
"locationName": "schemaName",
2011+
"documentation": "<p>The name of the schema.</p>"
2012+
},
2013+
"SchemaVersion": {
2014+
"shape": "__string",
2015+
"location": "querystring",
2016+
"locationName": "schemaVersion",
2017+
"documentation": "<p>Specifying this limits the results to only this schema version.</p>"
2018+
},
2019+
"Type": {
2020+
"shape": "__string",
2021+
"location": "querystring",
2022+
"locationName": "type"
2023+
}
2024+
},
2025+
"required": [
2026+
"RegistryName",
2027+
"SchemaName",
2028+
"Type"
2029+
]
2030+
},
2031+
"ExportSchemaResponse": {
2032+
"type": "structure",
2033+
"members": {
2034+
"Content": {
2035+
"shape": "__string"
2036+
},
2037+
"SchemaArn": {
2038+
"shape": "__string"
2039+
},
2040+
"SchemaName": {
2041+
"shape": "__string"
2042+
},
2043+
"SchemaVersion": {
2044+
"shape": "__string"
2045+
},
2046+
"Type": {
2047+
"shape": "__string"
2048+
}
2049+
}
2050+
},
19332051
"ForbiddenException": {
19342052
"type": "structure",
19352053
"members": {
@@ -2743,6 +2861,10 @@
27432861
"SchemaVersion": {
27442862
"shape": "__string",
27452863
"documentation": "<p>The version number of the schema.</p>"
2864+
},
2865+
"Type": {
2866+
"shape": "Type",
2867+
"documentation": "<p>The type of schema.</p>"
27462868
}
27472869
}
27482870
},
@@ -2777,6 +2899,10 @@
27772899
"SchemaVersion": {
27782900
"shape": "__string",
27792901
"documentation": "<p>The version number of the schema</p>"
2902+
},
2903+
"Type": {
2904+
"shape": "Type",
2905+
"documentation": "<p>The type of schema.</p>"
27802906
}
27812907
}
27822908
},
@@ -2981,7 +3107,8 @@
29813107
"Type": {
29823108
"type": "string",
29833109
"enum": [
2984-
"OpenApi3"
3110+
"OpenApi3",
3111+
"JSONSchemaDraft4"
29853112
]
29863113
},
29873114
"UnauthorizedException": {

0 commit comments

Comments
 (0)