You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're working on describing OpenSearch API using Smithy. This API has a lot of comma-separated lists, and any unions (i.e. oneOf keyword in OpenAPI term) as schemas for Path and QueryString parameters. However Smithy currently doesn't allow:
List as a data model for Path params
Union as a data model for Path params
Union as a data model for QueryString params
Is there a way to bypass these restrictions? If not, can we add support for this use case?
The text was updated successfully, but these errors were encountered:
And we have this operation DELETE /{index} where {index} has Indices as its schema. Right now there's no way for us to describe this schema properly as an untagged union. As a workaround, we've tried to describe this path param as an array of IndexName but Smithy doesn't allow Lists in path names either. So we would end up with a lot of duct-tape to describe the data model in Smithy:
xDataType("string | string[]")
xMember("IndexName")
String Indices
We're working on describing OpenSearch API using Smithy. This API has a lot of comma-separated lists, and any unions (i.e.
oneOf
keyword in OpenAPI term) as schemas for Path and QueryString parameters. However Smithy currently doesn't allow:Is there a way to bypass these restrictions? If not, can we add support for this use case?
The text was updated successfully, but these errors were encountered: