mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
enforce key order when writing swagger docs JSON
This commit is contained in:
parent
584ec9cf75
commit
6d04bd34ce
@ -163,7 +163,7 @@ class TestSwaggerGeneration():
|
||||
@classmethod
|
||||
def teardown_class(cls):
|
||||
with open('swagger.json', 'w') as f:
|
||||
data = json.dumps(cls.JSON, cls=i18nEncoder, indent=2)
|
||||
data = json.dumps(cls.JSON, cls=i18nEncoder, indent=2, sort_keys=True)
|
||||
# replace ISO dates w/ the same value so we don't generate
|
||||
# needless diffs
|
||||
data = re.sub(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user