Skip to content

Commit

Permalink
fix: obligation POST, PATCH fixed for category
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourav Bhowmik committed Oct 30, 2024
1 parent 40bfbca commit d41efe9
Showing 1 changed file with 136 additions and 0 deletions.
136 changes: 136 additions & 0 deletions cmd/laas/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,139 @@ const docTemplate = `{
}
}
},
<<<<<<< HEAD
=======
"models.ObligationPATCHRequestJSONSchema": {
"type": "object",
"required": [
"category"
],
"properties": {
"active": {
"type": "boolean",
"example": true
},
"category": {
"type": "string",
"enum": [
"Distribution",
"Patent",
"Internal",
"Contractual",
"Export Control",
"General"
],
"example": "Distribution"
},
"classification": {
"type": "string",
"enum": [
"green",
"white",
"yellow",
"red"
]
},
"comment": {
"type": "string",
"example": "This is a comment."
},
"modifications": {
"type": "boolean"
},
"text": {
"type": "string",
"example": "Source code be made available when distributing the software."
},
"text_updatable": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"obligation",
"restriction",
"risk",
"right"
]
}
}
},
"models.ObligationPOSTRequestJSONSchema": {
"type": "object",
"required": [
"active",
"category",
"classification",
"comment",
"modifications",
"shortnames",
"text",
"topic",
"type"
],
"properties": {
"active": {
"type": "boolean",
"example": true
},
"category": {
"type": "string",
"enum": [
"Distribution",
"Patent",
"Internal",
"Contractual",
"Export Control",
"General"
],
"example": "Distribution"
},
"classification": {
"type": "string",
"enum": [
"green",
"white",
"yellow",
"red"
]
},
"comment": {
"type": "string"
},
"modifications": {
"type": "boolean"
},
"shortnames": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"GPL-2.0-only",
"GPL-2.0-or-later"
]
},
"text": {
"type": "string",
"example": "Source code be made available when distributing the software."
},
"topic": {
"type": "string",
"example": "copyleft"
},
"type": {
"type": "string",
"enum": [
"obligation",
"restriction",
"risk",
"right"
]
}
}
},
>>>>>>> 65d5aaf (fix: obligation POST, PATCH fixed for category)
"models.ObligationPreview": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2379,6 +2512,7 @@ const docTemplate = `{
}
}
},
<<<<<<< HEAD
"models.ObligationUpdateDTO": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2410,6 +2544,8 @@ const docTemplate = `{
}
}
},
=======
>>>>>>> 65d5aaf (fix: obligation POST, PATCH fixed for category)
"models.PaginationMeta": {
"type": "object",
"properties": {
Expand Down

0 comments on commit d41efe9

Please sign in to comment.