mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Merge pull request #3012 from ryanpetrello/fix-swagger-key-ordering
enforce key order when writing swagger docs JSON
This commit is contained in:
commit
27f98163ff
@ -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