Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rf): Remove rf prefix from license fields in json #83

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 59 additions & 59 deletions cmd/laas/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,12 @@ const docTemplate = `{
},
{
"enum": [
"rf_spdx_id",
"rf_shortname",
"rf_fullname"
"spdx_id",
"shortname",
"fullname"
],
"type": "string",
"default": "rf_shortname",
"default": "shortname",
"description": "Sort by field",
"name": "sort_by",
"in": "query"
Expand Down Expand Up @@ -1772,7 +1772,7 @@ const docTemplate = `{
},
"field": {
"type": "string",
"example": "rf_text"
"example": "text"
},
"id": {
"type": "integer",
Expand Down Expand Up @@ -1837,87 +1837,87 @@ const docTemplate = `{
"models.LicenseDB": {
"type": "object",
"required": [
"rf_fullname",
"rf_shortname",
"rf_spdx_id",
"rf_text"
"fullname",
"shortname",
"spdx_id",
"text"
],
"properties": {
"external_ref": {
"$ref": "#/definitions/datatypes.JSONType-models_LicenseDBSchemaExtension"
},
"marydone": {
"FSFfree": {
"type": "boolean"
},
"rf_FSFfree": {
"type": "boolean"
},
"rf_Fedora": {
"Fedora": {
"type": "string"
},
"rf_GPLv2compatible": {
"GPLv2compatible": {
"type": "boolean"
},
"rf_GPLv3compatible": {
"GPLv3compatible": {
"type": "boolean"
},
"rf_OSIapproved": {
"OSIapproved": {
"type": "boolean"
},
"rf_active": {
"active": {
"type": "boolean"
},
"rf_add_date": {
"add_date": {
"type": "string",
"example": "2023-12-01T18:10:25.00+05:30"
},
"rf_copyleft": {
"copyleft": {
"type": "boolean"
},
"rf_detector_type": {
"detector_type": {
"type": "integer",
"maximum": 2,
"minimum": 0,
"example": 1
},
"rf_flag": {
"external_ref": {
"$ref": "#/definitions/datatypes.JSONType-models_LicenseDBSchemaExtension"
},
"flag": {
"type": "integer",
"maximum": 2,
"minimum": 0,
"example": 1
},
"rf_fullname": {
"fullname": {
"type": "string",
"example": "MIT License"
},
"rf_notes": {
"marydone": {
"type": "boolean"
},
"notes": {
"type": "string",
"example": "This license has been superseded."
},
"rf_risk": {
"risk": {
"type": "integer",
"maximum": 5,
"minimum": 0
},
"rf_shortname": {
"shortname": {
"type": "string",
"example": "MIT"
},
"rf_source": {
"source": {
"type": "string"
},
"rf_spdx_id": {
"spdx_id": {
"type": "string",
"example": "MIT"
},
"rf_text": {
"text": {
"type": "string",
"example": "MIT License Text here"
},
"rf_text_updatable": {
"text_updatable": {
"type": "boolean"
},
"rf_url": {
"url": {
"type": "string",
"example": "https://opensource.org/licenses/MIT"
}
Expand Down Expand Up @@ -2052,84 +2052,84 @@ const docTemplate = `{
"models.LicenseUpdateJSONSchema": {
"type": "object",
"properties": {
"external_ref": {
"$ref": "#/definitions/datatypes.JSONType-models_LicenseDBSchemaExtension"
},
"marydone": {
"type": "boolean",
"example": false
},
"rf_FSFfree": {
"FSFfree": {
"type": "boolean",
"example": false
},
"rf_Fedora": {
"Fedora": {
"type": "string",
"example": "Fedora"
},
"rf_GPLv2compatible": {
"GPLv2compatible": {
"type": "boolean",
"example": false
},
"rf_GPLv3compatible": {
"GPLv3compatible": {
"type": "boolean",
"example": false
},
"rf_OSIapproved": {
"OSIapproved": {
"type": "boolean",
"example": false
},
"rf_active": {
"active": {
"type": "boolean",
"example": true
},
"rf_copyleft": {
"copyleft": {
"type": "boolean",
"example": false
},
"rf_detector_type": {
"detector_type": {
"type": "integer",
"maximum": 2,
"minimum": 0,
"example": 1
},
"rf_flag": {
"external_ref": {
"$ref": "#/definitions/datatypes.JSONType-models_LicenseDBSchemaExtension"
},
"flag": {
"type": "integer",
"maximum": 2,
"minimum": 0,
"example": 1
},
"rf_fullname": {
"fullname": {
"type": "string",
"example": "MIT License"
},
"rf_notes": {
"marydone": {
"type": "boolean",
"example": false
},
"notes": {
"type": "string",
"example": "This license has been superseded."
},
"rf_risk": {
"risk": {
"type": "integer",
"maximum": 5,
"minimum": 0,
"example": 1
},
"rf_source": {
"source": {
"type": "string",
"example": "Source"
},
"rf_spdx_id": {
"spdx_id": {
"type": "string",
"example": "MIT"
},
"rf_text": {
"text": {
"type": "string",
"example": "MIT License Text here"
},
"rf_text_updatable": {
"text_updatable": {
"type": "boolean",
"example": false
},
"rf_url": {
"url": {
"type": "string",
"example": "https://opensource.org/licenses/MIT"
}
Expand Down Expand Up @@ -2515,7 +2515,7 @@ const docTemplate = `{
"properties": {
"field": {
"type": "string",
"example": "rf_text"
"example": "text"
},
"search": {
"type": "string",
Expand Down
Loading
Loading