Skip to content

Commit d10ff82

Browse files
authored
Merge pull request #107 from yknx4/fix/remove-min-limits
fix: remove min limits
2 parents ad98256 + 755b52d commit d10ff82

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

lib/opencov/plug/multipart_job.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule Librecov.Plug.MultipartJob do
3838
|> put_parsed_job(json)
3939
end
4040

41-
def handle(content_type, conn) do
41+
def handle(_content_type, conn) do
4242
conn
4343
end
4444

openapi.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@
114114
"properties": {
115115
"service_job_id": {
116116
"type": "string",
117-
"minLength": 1,
118117
"description": "A unique identifier of the job on the service specified by service_name.\n"
119118
},
120119
"service_name": {
121120
"type": "string",
122-
"minLength": 1,
123121
"description": "The CI service or other environment in which the test suite was run. This can be anything, but certain services have special features (travis-ci, travis-pro, or coveralls-ruby).\n"
124122
},
125123
"git": {
@@ -159,17 +157,14 @@
159157
"remotes": {
160158
"type": "array",
161159
"uniqueItems": true,
162-
"minItems": 1,
163160
"items": {
164161
"type": "object",
165162
"properties": {
166163
"name": {
167-
"type": "string",
168-
"minLength": 1
164+
"type": "string"
169165
},
170166
"url": {
171-
"type": "string",
172-
"minLength": 1
167+
"type": "string"
173168
}
174169
},
175170
"required": [
@@ -187,19 +182,16 @@
187182
"source_files": {
188183
"type": "array",
189184
"uniqueItems": true,
190-
"minItems": 1,
191185
"description": "An array of source files, including their coverage data.\n",
192186
"items": {
193187
"type": "object",
194188
"properties": {
195189
"name": {
196190
"type": "string",
197-
"minLength": 1,
198191
"description": "Represents the file path of this source file. Must be unique in the job. Can include slashes. The file type for syntax highlighting will be determined from the file extension in this parameter.\n"
199192
},
200193
"source_digest": {
201194
"type": "string",
202-
"minLength": 1,
203195
"description": "The MD5 digest of the full source code of this file.\n"
204196
},
205197
"coverage": {

0 commit comments

Comments
 (0)