Skip to content

Commit fb3546a

Browse files
committed
Licensing: added NOTICE
The NOTICE clearly exhibits the licensing terms of the original work on top of which this library is built. Replaced older licensing text by SPDX license identifiers in README and source files. Signed-off-by: Frederic BIDON <[email protected]>
1 parent be8ec04 commit fb3546a

File tree

7 files changed

+62
-55
lines changed

7 files changed

+62
-55
lines changed

.github/workflows/go-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99

1010
pull_request:
1111

12+
permissions:
13+
pull-requests: read
14+
contents: read
15+
1216
jobs:
1317
lint:
1418
name: Lint

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/

NOTICE

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Copyright 2015-2025 go-swagger maintainers
2+
3+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
4+
// SPDX-License-Identifier: Apache-2.0
5+
6+
This software library, github.com/go-openapi/jsonpointer, includes software developed
7+
by the go-swagger and go-openapi maintainers ("go-swagger maintainers").
8+
9+
Licensed under the Apache License, Version 2.0 (the "License");
10+
you may not use this software except in compliance with the License.
11+
You may obtain a copy of the License at
12+
13+
This software is copied from, derived from, and inspired by other original software products.
14+
It ships with copies of other software which license terms are recalled below.
15+
16+
The original sofware was authored on 25-02-2013 by sigu-399 (https://github.com/sigu-399, [email protected]).
17+
18+
github.com/sigh-399/jsonpointer
19+
===========================
20+
21+
// SPDX-FileCopyrightText: Copyright 2013 sigu-399 ( https://github.com/sigu-399 )
22+
// SPDX-License-Identifier: Apache-2.0
23+
24+
Copyright 2013 sigu-399 ( https://github.com/sigu-399 )
25+
26+
Licensed under the Apache License, Version 2.0 (the "License");
27+
you may not use this file except in compliance with the License.
28+
You may obtain a copy of the License at
29+
30+
http://www.apache.org/licenses/LICENSE-2.0
31+
32+
Unless required by applicable law or agreed to in writing, software
33+
distributed under the License is distributed on an "AS IS" BASIS,
34+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35+
See the License for the specific language governing permissions and
36+
limitations under the License.

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,27 @@
88
An implementation of JSON Pointer - Go language
99

1010
## Status
11-
Completed YES
1211

13-
Tested YES
12+
API is stable.
1413

1514
## References
1615

1716
<https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-07>
1817

1918
also known as [RFC6901](https://www.rfc-editor.org/rfc/rfc6901)
2019

21-
### Note
20+
## Licensing
2221

23-
The 4.Evaluation part of the previous reference, starting with 'If the currently referenced value is a JSON array, the reference token MUST contain either...' is not implemented.
22+
This library ships under the [SPDX-License-Identifier: Apache-2.0](./LICENSE).
2423

25-
That is because our implementation of the JSON pointer only supports explicit references to array elements: the provision in the spec
26-
to resolve non-existent members as "the last element in the array", using the special trailing character "-".
24+
See the license [NOTICE](./NOTICE), which recalls the licensing terms of all the pieces of software
25+
on top of which it has been built.
26+
27+
## Limitations
28+
29+
The 4.Evaluation part of the previous reference, starting with 'If the currently referenced value is a JSON array,
30+
the reference token MUST contain either...' is not implemented.
31+
32+
That is because our implementation of the JSON pointer only supports explicit references to array elements:
33+
the provision in the spec to resolve non-existent members as "the last element in the array",
34+
using the special trailing character "-".

errors.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright (c) 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package jsonpointer
25

36
type pointerError string

pointer.go

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
1-
// Copyright 2013 sigu-399 ( https://github.com/sigu-399 )
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
15-
// author sigu-399
16-
// author-github https://github.com/sigu-399
17-
// author-mail [email protected]
18-
//
19-
// repository-name jsonpointer
20-
// repository-desc An implementation of JSON Pointer - Go language
21-
//
22-
// description Main and unique file.
23-
//
24-
// created 25-02-2013
1+
// SPDX-FileCopyrightText: Copyright (c) 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
253

4+
// Package jsonpointer provides a golang implementation for json pointers.
265
package jsonpointer
276

287
import (

pointer_test.go

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
1-
// Copyright 2013 sigu-399 ( https://github.com/sigu-399 )
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
15-
// author sigu-399
16-
// author-github https://github.com/sigu-399
17-
// author-mail [email protected]
18-
//
19-
// repository-name jsonpointer
20-
// repository-desc An implementation of JSON Pointer - Go language
21-
//
22-
// description Automated tests on package.
23-
//
24-
// created 03-03-2013
1+
// SPDX-FileCopyrightText: Copyright (c) 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
253

264
package jsonpointer
275

0 commit comments

Comments
 (0)