Create a schema in the schema store
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
CreateSchemaStoreItemRequestBody req = new CreateSchemaStoreItemRequestBody() {
Format = SpeakeasySDK.Models.Operations.Format.Yaml,
PackageName = "<value>",
SDKClassname = "<value>",
Spec = "<value>",
};
var res = await sdk.SchemaStore.CreateSchemaStoreItemAsync(req);
// handle response
CreateSchemaStoreItemResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Get a OAS schema from the schema store
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetSchemaStoreItemRequestBody? req = null;
var res = await sdk.SchemaStore.GetSchemaStoreItemAsync(req);
// handle response
GetSchemaStoreItemResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |