Skip to content

Commit

Permalink
Revert License changes (#14)
Browse files Browse the repository at this point in the history
* Revert "Update license to CC-BY-SA-4.0 (#12)"

This reverts commit c1a7f90.

* fix booking link and remove discriminator

* updated the license in openapi.yaml
  • Loading branch information
philsturgeon committed Mar 12, 2024
1 parent c1a7f90 commit 8c2ebe0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 31 deletions.
55 changes: 33 additions & 22 deletions LICENSE_CC-BY-SA-4.0 → LICENSE_CC-BY-NC-SA-4.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Attribution-ShareAlike 4.0 International
Attribution-NonCommercial-ShareAlike 4.0 International

=======================================================================

Expand Down Expand Up @@ -54,18 +54,18 @@ exhaustive, and do not form part of our licenses.

=======================================================================

Creative Commons Attribution-ShareAlike 4.0 International Public
License
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Public License

By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-ShareAlike 4.0 International Public License ("Public
License"). To the extent this Public License may be interpreted as a
contract, You are granted the Licensed Rights in consideration of Your
acceptance of these terms and conditions, and the Licensor grants You
such rights in consideration of benefits the Licensor receives from
making the Licensed Material available under these terms and
conditions.
Attribution-NonCommercial-ShareAlike 4.0 International Public License
("Public License"). To the extent this Public License may be
interpreted as a contract, You are granted the Licensed Rights in
consideration of Your acceptance of these terms and conditions, and the
Licensor grants You such rights in consideration of benefits the
Licensor receives from making the Licensed Material available under
these terms and conditions.


Section 1 -- Definitions.
Expand All @@ -84,7 +84,7 @@ Section 1 -- Definitions.
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.

c. BY-SA Compatible License means a license listed at
c. BY-NC-SA Compatible License means a license listed at
creativecommons.org/compatiblelicenses, approved by Creative
Commons as essentially the equivalent of this Public License.

Expand All @@ -108,7 +108,7 @@ Section 1 -- Definitions.

g. License Elements means the license attributes listed in the name
of a Creative Commons Public License. The License Elements of this
Public License are Attribution and ShareAlike.
Public License are Attribution, NonCommercial, and ShareAlike.

h. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
Expand All @@ -122,21 +122,29 @@ Section 1 -- Definitions.
j. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.

k. Share means to provide material to the public by any means or
k. NonCommercial means not primarily intended for or directed towards
commercial advantage or monetary compensation. For purposes of
this Public License, the exchange of the Licensed Material for
other material subject to Copyright and Similar Rights by digital
file-sharing or similar means is NonCommercial provided there is
no payment of monetary compensation in connection with the
exchange.

l. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.

l. Sui Generis Database Rights means rights other than copyright
m. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.

m. You means the individual or entity exercising the Licensed Rights
n. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.


Expand All @@ -150,9 +158,10 @@ Section 2 -- Scope.
exercise the Licensed Rights in the Licensed Material to:

a. reproduce and Share the Licensed Material, in whole or
in part; and
in part, for NonCommercial purposes only; and

b. produce, reproduce, and Share Adapted Material.
b. produce, reproduce, and Share Adapted Material for
NonCommercial purposes only.

2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
Expand Down Expand Up @@ -220,7 +229,9 @@ Section 2 -- Scope.
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties.
reserves any right to collect such royalties, including when
the Licensed Material is used other than for NonCommercial
purposes.


Section 3 -- License Conditions.
Expand Down Expand Up @@ -265,7 +276,6 @@ following conditions.
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.

3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
Expand All @@ -277,7 +287,7 @@ following conditions.

1. The Adapter's License You apply must be a Creative Commons
license with the same License Elements, this version or
later, or a BY-SA Compatible License.
later, or a BY-NC-SA Compatible License.

2. You must include the text of, or the URI or hyperlink to, the
Adapter's License You apply. You may satisfy this condition
Expand All @@ -297,7 +307,8 @@ apply to Your use of the Licensed Material:

a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
portion of the contents of the database for NonCommercial purposes
only;

b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Expand Down Expand Up @@ -404,7 +415,6 @@ Section 8 -- Interpretation.
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.


=======================================================================

Creative Commons is not a party to its public
Expand All @@ -425,3 +435,4 @@ the avoidance of doubt, this paragraph does not form part of the
public licenses.

Creative Commons may be contacted at creativecommons.org.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Or [download it yourself](https://github.com/bump-sh-examples/train-travel-api/a

## License

The contents of this repository are licensed under [CC BY-SA
4.0](./LICENSE_CC-BY-SA-4.0).
The contents of this repository are licensed under [CC BY-NC-SA
4.0](./LICENSE_CC-BY-NC-SA-4.0).
13 changes: 6 additions & 7 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ info:
url: https://example.com/support
email: support@example.com
license:
name: Creative Commons Attribution Share Alike 4.0 International
identifier: CC-BY-SA-4.0
name: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
identifier: CC-BY-NC-SA-4.0

x-topics:
- title: Getting started
Expand Down Expand Up @@ -323,6 +323,7 @@ paths:
- properties:
links:
$ref: '#/components/schemas/Links-Self'

example:
id: efdbb9d1-02c2-4bc3-afb7-6788d8782b1e
trip_id: efdbb9d1-02c2-4bc3-afb7-6788d8782b1e
Expand Down Expand Up @@ -494,7 +495,7 @@ paths:
content:
application/json:
schema:
allOf:
allOf:
- $ref: '#/components/schemas/BookingPayment'
- properties:
links:
Expand Down Expand Up @@ -558,7 +559,7 @@ webhooks:
content:
application/json:
schema:
allOf:
allOf:
- $ref: '#/components/schemas/Booking'
- properties:
links:
Expand Down Expand Up @@ -890,8 +891,6 @@ components:
- account_type
- bank_name
- country
discriminator:
propertyName: object
status:
description: The status of the payment, one of `pending`, `succeeded`, or `failed`.
type: string
Expand All @@ -907,7 +906,7 @@ components:
type: string
format: uri
examples:
- https://api.example.com/bookings/123
- https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb
headers:
RateLimit:
description: |
Expand Down

0 comments on commit 8c2ebe0

Please sign in to comment.