xuri / xgen

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator
BSD 3-Clause "New" or "Revised" License
318 stars 75 forks source link

Generated code includes incorrect/invalid copyright & license notice #12

Closed BatmanAoD closed 4 years ago

BatmanAoD commented 4 years ago

The generated Go code includes this notice:

// Copyright 2020 The xgen Authors. All rights reserved.
//
// DO NOT EDIT: generated by xgen XSD generator
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

I am not a lawyer, but it seems improbable to me that this is a valid copyright, because "the xgen authors" did not actually write the generated code (generation based on a schema is not a "creative act"). I'm also not sure the license notice is valid; it would surprise me if code generators can automatically apply their own source code's license to the code they generate.

Was this intentional? Can the copyright and license notice be removed from the generated output?

xuri commented 4 years ago

Thanks for your feedback, this is not intentional, I will remove copyright and license notice from the generated code.