From 200821b3ceea8ffca7656fe3f6e2ef98b7110a2a Mon Sep 17 00:00:00 2001 From: Lubos Date: Wed, 18 Dec 2024 04:31:41 +0800 Subject: [PATCH 1/2] fix: revert license to MIT --- .changeset/twenty-apes-eat.md | 6 ++ LICENSE.md | 105 +++---------------------------- docs/.vitepress/config/en.ts | 4 -- docs/license.md | 30 --------- package.json | 2 +- packages/openapi-ts/LICENSE.md | 105 +++---------------------------- packages/openapi-ts/package.json | 2 +- 7 files changed, 24 insertions(+), 230 deletions(-) create mode 100644 .changeset/twenty-apes-eat.md delete mode 100644 docs/license.md diff --git a/.changeset/twenty-apes-eat.md b/.changeset/twenty-apes-eat.md new file mode 100644 index 000000000..b96899559 --- /dev/null +++ b/.changeset/twenty-apes-eat.md @@ -0,0 +1,6 @@ +--- +'@hey-api/openapi-ts': minor +'@hey-api/docs': minor +--- + +fix: revert license to MIT diff --git a/LICENSE.md b/LICENSE.md index 1472b9493..6acd8004b 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,102 +1,13 @@ -# Functional Source License, Version 1.1, MIT Future License +MIT License -## Abbreviation +Copyright (c) Hey API -FSL-1.1-MIT - -## Notice - -Copyright 2024 Hey API - -## Terms and Conditions - -### Licensor ("We") - -The party offering the Software under these Terms and Conditions. - -### The Software - -The "Software" is each version of the software that we make available under -these Terms and Conditions, as indicated by our inclusion of these Terms and -Conditions with the Software. - -### License Grant - -Subject to your compliance with this License Grant and the Patents, -Redistribution and Trademark clauses below, we hereby grant you the right to -use, copy, modify, create derivative works, publicly perform, publicly display -and redistribute the Software for any Permitted Purpose identified below. - -### Permitted Purpose - -A Permitted Purpose is any purpose other than a Competing Use. A Competing Use -means making the Software available to others in a commercial product or -service that: - -1. substitutes for the Software; - -2. substitutes for any other product or service we offer using the Software - that exists as of the date we make the Software available; or - -3. offers the same or substantially similar functionality as the Software. - -Permitted Purposes specifically include using the Software: - -1. for your internal use and access; - -2. for non-commercial education; - -3. for non-commercial research; and - -4. in connection with professional services that you provide to a licensee - using the Software in accordance with these Terms and Conditions. - -### Patents - -To the extent your use for a Permitted Purpose would necessarily infringe our -patents, the license grant above includes a license under our patents. If you -make a claim against any party that the Software infringes or contributes to -the infringement of any patent, then your patent license to the Software ends -immediately. - -### Redistribution - -The Terms and Conditions apply to all copies, modifications and derivatives of -the Software. - -If you redistribute any copies, modifications or derivatives of the Software, -you must include a copy of or a link to these Terms and Conditions and not -remove any copyright notices provided in or with the Software. - -### Disclaimer - -THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR -PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT. - -IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE -SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, -EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE. - -### Trademarks - -Except for displaying the License Details and identifying us as the origin of -the Software, you have no right under these Terms and Conditions to use our -trademarks, trade names, service marks or product names. - -## Grant of Future License - -We hereby irrevocably grant you an additional license to use the Software under -the MIT license that is effective on the second anniversary of the date we make -the Software available. On or after that date, you may use the Software under -the MIT license, in which case the following will apply: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index 97dd37c20..7de27ee3c 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -100,10 +100,6 @@ export default defineConfig({ link: '/openapi-ts/migrating', text: 'Migrating', }, - { - link: '/license', - text: 'License', - }, { link: '/about', text: 'Philosophy', diff --git a/docs/license.md b/docs/license.md deleted file mode 100644 index 711f3cd9e..000000000 --- a/docs/license.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: License -description: License FAQ. ---- - -# License - -While our client packages use the standard MIT license, [openapi-ts](https://github.com/hey-api/openapi-ts/blob/main/LICENSE.md) uses the FSL license pioneered by Sentry. This page explains the motivation behind the change and attempts to answer the most commonly asked questions. If your question isn't answered here, please join the [discussion](https://github.com/orgs/hey-api/discussions/1141). - -## FAQ - -### Why does openapi-ts use the FSL license? - -The main motivation behind using the FSL license for openapi-ts is to protect it from being sold by other companies. We have invested hundreds of hours into development, support, and maintenance to create a high quality product publicly available to everyone. It would not be fair for another company to come and monetize this work without giving back. The MIT license does not offer any protection if this ever happens. - -### What's a permitted usage? - -You are free to generate code with openapi-ts and use the generated code in commercial and non-commercial projects, as long as you do not charge your customers for the code generation. Prior to the license change from MIT on Sep 4th 2024, every use case fell under the permitted usage. - -### What's NOT a permitted usage? - -If you're using openapi-ts to sell competing services related to API tooling such as SDK generation, documentation generation, or API breaking change detection, these are excluded from permitted usage. Feel free to contact us if you're unsure about your use case! - -### Which license does the generated code use? - -The code generated by openapi-ts must follow the permitted usage outlined above. For example, it's fine to consume or publish the generated clients, but you cannot charge your customers for doing so. - -## Feedback - -We understand that your life would be easier if every package used the MIT license. At the same time, it's important to protect our work, so we can keep maintaining it without fear of being exploited by predatory companies. If you have any feedback about licensing, we would love to hear your thoughts in the [discussion](https://github.com/orgs/hey-api/discussions/1141). diff --git a/package.json b/package.json index d6ce5ddc5..3280fa870 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/hey-api/openapi-ts/issues" }, - "license": "FSL-1.1-MIT", + "license": "MIT", "author": { "email": "lubos@heyapi.dev", "name": "Lubos Menus", diff --git a/packages/openapi-ts/LICENSE.md b/packages/openapi-ts/LICENSE.md index 1472b9493..6acd8004b 100644 --- a/packages/openapi-ts/LICENSE.md +++ b/packages/openapi-ts/LICENSE.md @@ -1,102 +1,13 @@ -# Functional Source License, Version 1.1, MIT Future License +MIT License -## Abbreviation +Copyright (c) Hey API -FSL-1.1-MIT - -## Notice - -Copyright 2024 Hey API - -## Terms and Conditions - -### Licensor ("We") - -The party offering the Software under these Terms and Conditions. - -### The Software - -The "Software" is each version of the software that we make available under -these Terms and Conditions, as indicated by our inclusion of these Terms and -Conditions with the Software. - -### License Grant - -Subject to your compliance with this License Grant and the Patents, -Redistribution and Trademark clauses below, we hereby grant you the right to -use, copy, modify, create derivative works, publicly perform, publicly display -and redistribute the Software for any Permitted Purpose identified below. - -### Permitted Purpose - -A Permitted Purpose is any purpose other than a Competing Use. A Competing Use -means making the Software available to others in a commercial product or -service that: - -1. substitutes for the Software; - -2. substitutes for any other product or service we offer using the Software - that exists as of the date we make the Software available; or - -3. offers the same or substantially similar functionality as the Software. - -Permitted Purposes specifically include using the Software: - -1. for your internal use and access; - -2. for non-commercial education; - -3. for non-commercial research; and - -4. in connection with professional services that you provide to a licensee - using the Software in accordance with these Terms and Conditions. - -### Patents - -To the extent your use for a Permitted Purpose would necessarily infringe our -patents, the license grant above includes a license under our patents. If you -make a claim against any party that the Software infringes or contributes to -the infringement of any patent, then your patent license to the Software ends -immediately. - -### Redistribution - -The Terms and Conditions apply to all copies, modifications and derivatives of -the Software. - -If you redistribute any copies, modifications or derivatives of the Software, -you must include a copy of or a link to these Terms and Conditions and not -remove any copyright notices provided in or with the Software. - -### Disclaimer - -THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR -PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT. - -IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE -SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, -EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE. - -### Trademarks - -Except for displaying the License Details and identifying us as the origin of -the Software, you have no right under these Terms and Conditions to use our -trademarks, trade names, service marks or product names. - -## Grant of Future License - -We hereby irrevocably grant you an additional license to use the Software under -the MIT license that is effective on the second anniversary of the date we make -the Software available. On or after that date, you may use the Software under -the MIT license, in which case the following will apply: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/packages/openapi-ts/package.json b/packages/openapi-ts/package.json index b872e4a02..19ba18413 100644 --- a/packages/openapi-ts/package.json +++ b/packages/openapi-ts/package.json @@ -10,7 +10,7 @@ "bugs": { "url": "https://github.com/hey-api/openapi-ts/issues" }, - "license": "FSL-1.1-MIT", + "license": "MIT", "author": { "email": "lubos@heyapi.dev", "name": "Lubos Menus", From 0e4305249366fed00c35bc2188ca59031c0b2958 Mon Sep 17 00:00:00 2001 From: Lubos Date: Wed, 18 Dec 2024 04:46:48 +0800 Subject: [PATCH 2/2] chore: keep the license page --- docs/.vitepress/config/en.ts | 7 +++++++ docs/.vitepress/theme/custom.css | 1 + docs/license.md | 28 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 docs/license.md diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index 7de27ee3c..88d4d505d 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -5,6 +5,9 @@ export default defineConfig({ '🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.', lang: 'en-US', themeConfig: { + footer: { + message: 'Released under the MIT License.', + }, nav: [ { link: 'https://github.com/sponsors/hey-api', @@ -100,6 +103,10 @@ export default defineConfig({ link: '/openapi-ts/migrating', text: 'Migrating', }, + { + link: '/license', + text: 'License', + }, { link: '/about', text: 'Philosophy', diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index f1c3597e9..d4d2f94c3 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -78,6 +78,7 @@ iframe { .home-list > ul { align-items: center; + justify-content: center; } .home-list > ul, diff --git a/docs/license.md b/docs/license.md new file mode 100644 index 000000000..0da8b3e32 --- /dev/null +++ b/docs/license.md @@ -0,0 +1,28 @@ +--- +title: License +description: License FAQ. +--- + +# License + +### MIT License + +Copyright (c) Hey API + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.