Skip to content

Commit 5074843

Browse files
chore(platform): derive schema and operations from oas3 spec
1 parent 2470478 commit 5074843

6 files changed

Lines changed: 16587 additions & 11180 deletions

File tree

staxapp/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def branch(cls):
132132

133133
@classmethod
134134
def schema_url(cls):
135-
return f"https://{cls.hostname}/{cls.API_VERSION}/public/api-document"
135+
return f"https://{cls.hostname}/{cls.API_VERSION}/public/oas3-document"
136136

137137
@classmethod
138138
def get_auth_class(cls):

staxapp/contract.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22
import logging
33
import os
4-
from contextlib import suppress
54

65
import requests
76
from jsonschema import validate as json_validate
@@ -53,7 +52,7 @@ def validate(cls, data, component):
5352

5453
@staticmethod
5554
def default_swagger_template() -> dict:
56-
# Get the default swagger template from https://api.au1.staxapp.cloud/20190206/public/api-document
55+
# Get the default swagger template from https://api.au1.staxapp.cloud/20190206/public/oas3-document
5756
schema_response = requests.get(Config.GetDefaultConfig().schema_url()).json()
5857
template = dict(
5958
openapi="3.0.0",

0 commit comments

Comments
 (0)