Details
-
Bug
-
Resolution: Timed out
-
Medium
-
12
-
Description
When generating Java code from the Swagger API definition, it is not possible to set the "pattern" value.
The "pattern" value is mentioned here:
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/branch-restrictions#post
But there is no mention of it in the request example either.
I believe it is missing here in the definition:
#!json "branchrestriction": { "allOf": [ { "$ref": "#/definitions/object" }, { "type": "object", "description": "A branch restriction rule.", "properties": { "links": { "type": "object", "properties": { "self": { "type": "object", "properties": { "href": { "type": "string", "format": "uri" }, "name": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, "id": { "type": "integer", "description": "The branch restriction status' id." }, "kind": { "type": "string", "description": "The type of restriction that is being applied", "enum": [ "require_tasks_to_be_completed", "require_passing_builds_to_merge", "force", "require_all_dependencies_merged", "push", "require_approvals_to_merge", "enforce_merge_checks", "restrict_merges", "reset_pullrequest_approvals_on_change", "delete" ] }, "users": { "type": "array", "items": { "$ref": "#/definitions/account" }, "minItems": 0 }, "groups": { "type": "array", "items": { "$ref": "#/definitions/group" }, "minItems": 0 }, "value": { "type": "integer", "description": "Value with kind-specific semantics: \"require_approvals_to_merge\" uses it to require a minimum number of approvals on a PR; \"require_passing_builds_to_merge\" uses it to require a minimum number of passing builds." } }, "additionalProperties": true } ] }