From ec42b51bf5c32cb489d59e383ce68de2404a66f4 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Wed, 23 Oct 2019 18:26:06 +0100 Subject: [PATCH] Regenerate test expected outputs --- schemars/tests/expected/remote_derive.json | 38 +++++++++---------- .../tests/expected/schema-name-custom.json | 28 +++++++------- .../tests/expected/schema-name-default.json | 28 +++++++------- 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/schemars/tests/expected/remote_derive.json b/schemars/tests/expected/remote_derive.json index a19fc28..29a1c2c 100644 --- a/schemars/tests/expected/remote_derive.json +++ b/schemars/tests/expected/remote_derive.json @@ -2,25 +2,6 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Process", "type": "object", - "definitions": { - "DurationDef": { - "type": "object", - "required": [ - "nanos", - "secs" - ], - "properties": { - "nanos": { - "type": "integer", - "format": "int32" - }, - "secs": { - "type": "integer", - "format": "int64" - } - } - } - }, "required": [ "command_line", "system_cpu_time", @@ -40,5 +21,24 @@ "wall_time": { "$ref": "#/definitions/DurationDef" } + }, + "definitions": { + "DurationDef": { + "type": "object", + "required": [ + "nanos", + "secs" + ], + "properties": { + "nanos": { + "type": "integer", + "format": "int32" + }, + "secs": { + "type": "integer", + "format": "int64" + } + } + } } } \ No newline at end of file diff --git a/schemars/tests/expected/schema-name-custom.json b/schemars/tests/expected/schema-name-custom.json index bc05f52..3ea21ed 100644 --- a/schemars/tests/expected/schema-name-custom.json +++ b/schemars/tests/expected/schema-name-custom.json @@ -2,20 +2,6 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "a-new-name-Array_Of_String-Integer-Integer", "type": "object", - "definitions": { - "another-new-name": { - "type": "object", - "required": [ - "foo" - ], - "properties": { - "foo": { - "type": "integer", - "format": "int32" - } - } - } - }, "required": [ "inner", "t", @@ -43,5 +29,19 @@ "type": "string" } } + }, + "definitions": { + "another-new-name": { + "type": "object", + "required": [ + "foo" + ], + "properties": { + "foo": { + "type": "integer", + "format": "int32" + } + } + } } } \ No newline at end of file diff --git a/schemars/tests/expected/schema-name-default.json b/schemars/tests/expected/schema-name-default.json index 74560c5..cccd711 100644 --- a/schemars/tests/expected/schema-name-default.json +++ b/schemars/tests/expected/schema-name-default.json @@ -2,20 +2,6 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "MyStruct_For_Integer_And_Null_And_Boolean_And_Array_Of_String", "type": "object", - "definitions": { - "MySimpleStruct": { - "type": "object", - "required": [ - "foo" - ], - "properties": { - "foo": { - "type": "integer", - "format": "int32" - } - } - } - }, "required": [ "inner", "t", @@ -43,5 +29,19 @@ "type": "string" } } + }, + "definitions": { + "MySimpleStruct": { + "type": "object", + "required": [ + "foo" + ], + "properties": { + "foo": { + "type": "integer", + "format": "int32" + } + } + } } } \ No newline at end of file