diff --git a/pkg/codegen/model.go b/pkg/codegen/model.go index 244b7146..900057b0 100644 --- a/pkg/codegen/model.go +++ b/pkg/codegen/model.go @@ -22,7 +22,7 @@ type File struct { } func (p *File) Generate(out *Emitter) { - out.Comment("THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.") + out.Comment("Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.") out.Newline() p.Package.Generate(out) } diff --git a/tests/data/core/4.2.1_array.go.output b/tests/data/core/4.2.1_array.go.output index e397e81d..fcaa4669 100644 --- a/tests/data/core/4.2.1_array.go.output +++ b/tests/data/core/4.2.1_array.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/object.go.output b/tests/data/core/object.go.output index cc2236ed..22dfd77d 100644 --- a/tests/data/core/object.go.output +++ b/tests/data/core/object.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/objectEmpty.go.output b/tests/data/core/objectEmpty.go.output index df63ae27..37739fad 100644 --- a/tests/data/core/objectEmpty.go.output +++ b/tests/data/core/objectEmpty.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/objectNested.go.output b/tests/data/core/objectNested.go.output index fbf24ac2..e19425ea 100644 --- a/tests/data/core/objectNested.go.output +++ b/tests/data/core/objectNested.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/primitives.go.output b/tests/data/core/primitives.go.output index f1ffee5a..82b5b19f 100644 --- a/tests/data/core/primitives.go.output +++ b/tests/data/core/primitives.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/ref.go.output b/tests/data/core/ref.go.output index 55856be7..69821d1a 100644 --- a/tests/data/core/ref.go.output +++ b/tests/data/core/ref.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refExternalFile.go.output b/tests/data/core/refExternalFile.go.output index 86aa3118..d7081400 100644 --- a/tests/data/core/refExternalFile.go.output +++ b/tests/data/core/refExternalFile.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refExternalFileWithDupe.go.output b/tests/data/core/refExternalFileWithDupe.go.output index 07237aad..ce642c30 100644 --- a/tests/data/core/refExternalFileWithDupe.go.output +++ b/tests/data/core/refExternalFileWithDupe.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refToEnum.go.output b/tests/data/core/refToEnum.go.output index 19442c1c..ef451ee3 100644 --- a/tests/data/core/refToEnum.go.output +++ b/tests/data/core/refToEnum.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refToPrimitiveString.go.output b/tests/data/core/refToPrimitiveString.go.output index fce8f182..2ecc81ff 100644 --- a/tests/data/core/refToPrimitiveString.go.output +++ b/tests/data/core/refToPrimitiveString.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/crossPackage/other.go.output b/tests/data/crossPackage/other.go.output index a812dadd..c53ee573 100644 --- a/tests/data/crossPackage/other.go.output +++ b/tests/data/crossPackage/other.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package other diff --git a/tests/data/crossPackage/schema.go.output b/tests/data/crossPackage/schema.go.output index 0221775e..8bc8931e 100644 --- a/tests/data/crossPackage/schema.go.output +++ b/tests/data/crossPackage/schema.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package schema diff --git a/tests/data/crossPackageNoOutput/schema.go.output b/tests/data/crossPackageNoOutput/schema.go.output index 0221775e..8bc8931e 100644 --- a/tests/data/crossPackageNoOutput/schema.go.output +++ b/tests/data/crossPackageNoOutput/schema.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package schema diff --git a/tests/data/misc/capitalization.go.output b/tests/data/misc/capitalization.go.output index f8d80b51..b4d15b92 100644 --- a/tests/data/misc/capitalization.go.output +++ b/tests/data/misc/capitalization.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/case.go.output b/tests/data/miscWithDefaults/case.go.output index 5447da67..390f8ee6 100644 --- a/tests/data/miscWithDefaults/case.go.output +++ b/tests/data/miscWithDefaults/case.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/caseDupes.go.output b/tests/data/miscWithDefaults/caseDupes.go.output index 27afbca2..67fd7f75 100644 --- a/tests/data/miscWithDefaults/caseDupes.go.output +++ b/tests/data/miscWithDefaults/caseDupes.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/cyclic.go.output b/tests/data/miscWithDefaults/cyclic.go.output index 63a383ec..f4e7bdbc 100644 --- a/tests/data/miscWithDefaults/cyclic.go.output +++ b/tests/data/miscWithDefaults/cyclic.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/cyclicAndRequired1.go.output b/tests/data/miscWithDefaults/cyclicAndRequired1.go.output index e0c924dc..cea8a006 100644 --- a/tests/data/miscWithDefaults/cyclicAndRequired1.go.output +++ b/tests/data/miscWithDefaults/cyclicAndRequired1.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/cyclicAndRequired2.go.output b/tests/data/miscWithDefaults/cyclicAndRequired2.go.output index 261dbf96..c328270f 100644 --- a/tests/data/miscWithDefaults/cyclicAndRequired2.go.output +++ b/tests/data/miscWithDefaults/cyclicAndRequired2.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/rootEmptyJustDefinitions.go.output b/tests/data/miscWithDefaults/rootEmptyJustDefinitions.go.output index f9214646..9f1e977e 100644 --- a/tests/data/miscWithDefaults/rootEmptyJustDefinitions.go.output +++ b/tests/data/miscWithDefaults/rootEmptyJustDefinitions.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/rootIsArrayOfString.go.output b/tests/data/miscWithDefaults/rootIsArrayOfString.go.output index 94a3ad6f..fbf1a6b7 100644 --- a/tests/data/miscWithDefaults/rootIsArrayOfString.go.output +++ b/tests/data/miscWithDefaults/rootIsArrayOfString.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/10.1_description.go.output b/tests/data/validation/10.1_description.go.output index 5fc20f01..d6b4c7eb 100644 --- a/tests/data/validation/10.1_description.go.output +++ b/tests/data/validation/10.1_description.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/6.1.1_typeMultiple.go.output b/tests/data/validation/6.1.1_typeMultiple.go.output index f33e0e6d..4c1f7dee 100644 --- a/tests/data/validation/6.1.1_typeMultiple.go.output +++ b/tests/data/validation/6.1.1_typeMultiple.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/6.1.2_enum.go.output b/tests/data/validation/6.1.2_enum.go.output index f321cdee..c2dd8f45 100644 --- a/tests/data/validation/6.1.2_enum.go.output +++ b/tests/data/validation/6.1.2_enum.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/6.5.3_requiredFields.go.output b/tests/data/validation/6.5.3_requiredFields.go.output index 0116f49b..a42d796a 100644 --- a/tests/data/validation/6.5.3_requiredFields.go.output +++ b/tests/data/validation/6.5.3_requiredFields.go.output @@ -1,4 +1,4 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. +// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package test