@@ -8874,3 +8874,139 @@ Generated by [AVA](https://avajs.dev).
8874
8874
"additionalProperties": false,␊
8875
8875
"required": []␊
8876
8876
}`
8877
+
8878
+ ## realWorld.jsonschema.js
8879
+
8880
+ > Expected output to match snapshot for e2e test: realWorld.jsonschema.js
8881
+
8882
+ `/* tslint:disable */␊
8883
+ /**␊
8884
+ * This file was automatically generated by json-schema-to-typescript.␊
8885
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
8886
+ * and run json-schema-to-typescript to regenerate this file.␊
8887
+ */␊
8888
+ ␊
8889
+ export type CoreSchemaMetaSchema = CoreSchemaMetaSchema1 & CoreSchemaMetaSchema2;␊
8890
+ export type NonNegativeInteger = number;␊
8891
+ export type NonNegativeIntegerDefault0 = NonNegativeInteger;␊
8892
+ export type CoreSchemaMetaSchema2 =␊
8893
+ | {␊
8894
+ $id?: string;␊
8895
+ $schema?: string;␊
8896
+ $ref?: string;␊
8897
+ $comment?: string;␊
8898
+ title?: string;␊
8899
+ description?: string;␊
8900
+ default?: true;␊
8901
+ readOnly?: boolean;␊
8902
+ writeOnly?: boolean;␊
8903
+ examples?: true[];␊
8904
+ multipleOf?: number;␊
8905
+ maximum?: number;␊
8906
+ exclusiveMaximum?: number;␊
8907
+ minimum?: number;␊
8908
+ exclusiveMinimum?: number;␊
8909
+ maxLength?: NonNegativeInteger;␊
8910
+ minLength?: NonNegativeIntegerDefault0;␊
8911
+ pattern?: string;␊
8912
+ additionalItems?: CoreSchemaMetaSchema2;␊
8913
+ items?: CoreSchemaMetaSchema2 | SchemaArray;␊
8914
+ maxItems?: NonNegativeInteger;␊
8915
+ minItems?: NonNegativeIntegerDefault0;␊
8916
+ uniqueItems?: boolean;␊
8917
+ contains?: CoreSchemaMetaSchema2;␊
8918
+ maxProperties?: NonNegativeInteger;␊
8919
+ minProperties?: NonNegativeIntegerDefault0;␊
8920
+ required?: StringArray;␊
8921
+ additionalProperties?: CoreSchemaMetaSchema2;␊
8922
+ definitions?: {␊
8923
+ [k: string]: CoreSchemaMetaSchema2;␊
8924
+ };␊
8925
+ properties?: {␊
8926
+ [k: string]: CoreSchemaMetaSchema2;␊
8927
+ };␊
8928
+ patternProperties?: {␊
8929
+ [k: string]: CoreSchemaMetaSchema2;␊
8930
+ };␊
8931
+ dependencies?: {␊
8932
+ [k: string]: CoreSchemaMetaSchema2 | StringArray;␊
8933
+ };␊
8934
+ propertyNames?: CoreSchemaMetaSchema2;␊
8935
+ const?: true;␊
8936
+ enum?: [true, ...unknown[]];␊
8937
+ type?: SimpleTypes | [SimpleTypes, ...SimpleTypes[]];␊
8938
+ format?: string;␊
8939
+ contentMediaType?: string;␊
8940
+ contentEncoding?: string;␊
8941
+ if?: CoreSchemaMetaSchema2;␊
8942
+ then?: CoreSchemaMetaSchema2;␊
8943
+ else?: CoreSchemaMetaSchema2;␊
8944
+ allOf?: SchemaArray;␊
8945
+ anyOf?: SchemaArray;␊
8946
+ oneOf?: SchemaArray;␊
8947
+ not?: CoreSchemaMetaSchema2;␊
8948
+ [k: string]: unknown;␊
8949
+ }␊
8950
+ | boolean;␊
8951
+ export type SchemaArray = [CoreSchemaMetaSchema2, ...CoreSchemaMetaSchema2[]];␊
8952
+ export type StringArray = string[];␊
8953
+ export type SimpleTypes = "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";␊
8954
+ ␊
8955
+ export interface CoreSchemaMetaSchema1 {␊
8956
+ $id?: string;␊
8957
+ $schema?: string;␊
8958
+ $ref?: string;␊
8959
+ $comment?: string;␊
8960
+ title?: string;␊
8961
+ description?: string;␊
8962
+ default?: true;␊
8963
+ readOnly?: boolean;␊
8964
+ writeOnly?: boolean;␊
8965
+ examples?: true[];␊
8966
+ multipleOf?: number;␊
8967
+ maximum?: number;␊
8968
+ exclusiveMaximum?: number;␊
8969
+ minimum?: number;␊
8970
+ exclusiveMinimum?: number;␊
8971
+ maxLength?: NonNegativeInteger;␊
8972
+ minLength?: NonNegativeIntegerDefault0;␊
8973
+ pattern?: string;␊
8974
+ additionalItems?: CoreSchemaMetaSchema2;␊
8975
+ items?: CoreSchemaMetaSchema2 | SchemaArray;␊
8976
+ maxItems?: NonNegativeInteger;␊
8977
+ minItems?: NonNegativeIntegerDefault0;␊
8978
+ uniqueItems?: boolean;␊
8979
+ contains?: CoreSchemaMetaSchema2;␊
8980
+ maxProperties?: NonNegativeInteger;␊
8981
+ minProperties?: NonNegativeIntegerDefault0;␊
8982
+ required?: StringArray;␊
8983
+ additionalProperties?: CoreSchemaMetaSchema2;␊
8984
+ definitions?: {␊
8985
+ [k: string]: CoreSchemaMetaSchema2;␊
8986
+ };␊
8987
+ properties?: {␊
8988
+ [k: string]: CoreSchemaMetaSchema2;␊
8989
+ };␊
8990
+ patternProperties?: {␊
8991
+ [k: string]: CoreSchemaMetaSchema2;␊
8992
+ };␊
8993
+ dependencies?: {␊
8994
+ [k: string]: CoreSchemaMetaSchema2 | StringArray;␊
8995
+ };␊
8996
+ propertyNames?: CoreSchemaMetaSchema2;␊
8997
+ const?: true;␊
8998
+ enum?: [true, ...unknown[]];␊
8999
+ type?: SimpleTypes | [SimpleTypes, ...SimpleTypes[]];␊
9000
+ format?: string;␊
9001
+ contentMediaType?: string;␊
9002
+ contentEncoding?: string;␊
9003
+ if?: CoreSchemaMetaSchema2;␊
9004
+ then?: CoreSchemaMetaSchema2;␊
9005
+ else?: CoreSchemaMetaSchema2;␊
9006
+ allOf?: SchemaArray;␊
9007
+ anyOf?: SchemaArray;␊
9008
+ oneOf?: SchemaArray;␊
9009
+ not?: CoreSchemaMetaSchema2;␊
9010
+ [k: string]: unknown;␊
9011
+ }␊
9012
+ `
0 commit comments