Skip to content

Commit 15566be

Browse files
committed
OpenAPI: Fix license field
1 parent 6f2ffa9 commit 15566be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/openapi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ other clients).
3333
description = DESCRIPTION,
3434
terms_of_service = "https://crates.io/policies",
3535
contact(name = "the crates.io team", email = "[email protected]"),
36-
license(),
36+
license(name = "MIT OR Apache-2.0", url = "https://github.com/rust-lang/crates.io/blob/main/README.md#%EF%B8%8F-license"),
3737
version = "0.0.0",
3838
),
3939
modifiers(&SecurityAddon),

src/snapshots/crates_io__openapi__tests__openapi_snapshot.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ expression: response.json()
2626
},
2727
"description": "\n__Experimental API documentation for the [crates.io](https://crates.io/)\npackage registry.__\n\nThis document describes the API used by the crates.io website, cargo\nclient, and other third-party tools to interact with the crates.io\nregistry.\n\n__The API is under active development and may change at any time__,\nthough we will try to avoid breaking changes where possible.\n\nSome parts of the API follow the \"Registry Web API\" spec documented\nat <https://doc.rust-lang.org/cargo/reference/registry-web-api.html>\nand can be considered stable.\n\nMost parts of the API do not require authentication. The endpoints\nthat do require authentication are marked as such in the documentation,\nwith some requiring cookie authentication (useable only by the web UI)\nand others requiring API token authentication (useable by cargo and\nother clients).\n",
2828
"license": {
29-
"name": ""
29+
"name": "MIT OR Apache-2.0",
30+
"url": "https://github.com/rust-lang/crates.io/blob/main/README.md#%EF%B8%8F-license"
3031
},
3132
"termsOfService": "https://crates.io/policies",
3233
"title": "crates.io",

0 commit comments

Comments
 (0)