Skip to content

Commit 4c7a478

Browse files
committed
goa gen github.com/arduino/arduino-create-agent/design
fix test
1 parent 92695a2 commit 4c7a478

File tree

13 files changed

+54
-220
lines changed

13 files changed

+54
-220
lines changed

gen/http/cli/arduino_create_agent/cli.go

+3-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/http/openapi.json

+1-1
Large diffs are not rendered by default.

gen/http/openapi.yaml

+18-42
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ paths:
2626
type: array
2727
items:
2828
type: string
29-
example: Repudiandae dignissimos consectetur eos molestiae culpa soluta.
29+
example: Pariatur laudantium inventore qui.
3030
"400":
3131
description: Bad Request response.
3232
schema:
@@ -153,11 +153,6 @@ paths:
153153
description: The version of the tool
154154
required: true
155155
type: string
156-
- name: RemoveRequestBody
157-
in: body
158-
required: true
159-
schema:
160-
$ref: '#/definitions/ToolsRemoveRequestBody'
161156
responses:
162157
"200":
163158
description: OK response.
@@ -193,14 +188,14 @@ definitions:
193188
timeout:
194189
type: boolean
195190
description: Is the error a timeout?
196-
example: false
191+
example: true
197192
description: url invalid (default view)
198193
example:
199194
fault: false
200195
id: 123abc
201196
message: parameter 'p' must be an integer
202197
name: bad_request
203-
temporary: false
198+
temporary: true
204199
timeout: false
205200
required:
206201
- name
@@ -241,7 +236,7 @@ definitions:
241236
fault:
242237
type: boolean
243238
description: Is the error a server-side fault?
244-
example: true
239+
example: false
245240
id:
246241
type: string
247242
description: ID is a unique identifier for this particular occurrence of the problem.
@@ -261,14 +256,14 @@ definitions:
261256
timeout:
262257
type: boolean
263258
description: Is the error a timeout?
264-
example: false
259+
example: true
265260
description: url invalid (default view)
266261
example:
267-
fault: true
262+
fault: false
268263
id: 123abc
269264
message: parameter 'p' must be an integer
270265
name: bad_request
271-
temporary: true
266+
temporary: false
272267
timeout: true
273268
required:
274269
- name
@@ -284,7 +279,7 @@ definitions:
284279
fault:
285280
type: boolean
286281
description: Is the error a server-side fault?
287-
example: false
282+
example: true
288283
id:
289284
type: string
290285
description: ID is a unique identifier for this particular occurrence of the problem.
@@ -300,19 +295,19 @@ definitions:
300295
temporary:
301296
type: boolean
302297
description: Is the error temporary?
303-
example: true
298+
example: false
304299
timeout:
305300
type: boolean
306301
description: Is the error a timeout?
307-
example: true
302+
example: false
308303
description: url invalid (default view)
309304
example:
310-
fault: false
305+
fault: true
311306
id: 123abc
312307
message: parameter 'p' must be an integer
313308
name: bad_request
314309
temporary: true
315-
timeout: false
310+
timeout: true
316311
required:
317312
- name
318313
- id
@@ -374,10 +369,6 @@ definitions:
374369
title: ToolsInstallRequestBody
375370
type: object
376371
properties:
377-
checksum:
378-
type: string
379-
description: "A checksum of the archive. Mandatory when url is present. \n\tThis ensures that the package is downloaded correcly."
380-
example: Totam cum inventore exercitationem in.
381372
name:
382373
type: string
383374
description: The name of the tool
@@ -386,19 +377,13 @@ definitions:
386377
type: string
387378
description: The packager of the tool
388379
example: arduino
389-
url:
390-
type: string
391-
description: "The url where the package can be found. Optional. \n\tIf present checksum must also be present."
392-
example: Totam vero ipsum corporis nihil voluptatem id.
393380
version:
394381
type: string
395382
description: The version of the tool
396383
example: 6.3.0-arduino9
397384
example:
398-
checksum: Modi dolorem reprehenderit perspiciatis illo aspernatur.
399385
name: avrdude
400386
packager: arduino
401-
url: Officia optio inventore atque in voluptatibus qui.
402387
version: 6.3.0-arduino9
403388
required:
404389
- name
@@ -417,21 +402,6 @@ definitions:
417402
status: ok
418403
required:
419404
- status
420-
ToolsRemoveRequestBody:
421-
title: ToolsRemoveRequestBody
422-
type: object
423-
properties:
424-
checksum:
425-
type: string
426-
description: "A checksum of the archive. Mandatory when url is present. \n\tThis ensures that the package is downloaded correcly."
427-
example: Et qui id et cumque illo.
428-
url:
429-
type: string
430-
description: "The url where the package can be found. Optional. \n\tIf present checksum must also be present."
431-
example: Officia maiores reiciendis est nemo.
432-
example:
433-
checksum: Corporis eum et numquam sapiente.
434-
url: Est voluptatem eos reprehenderit quo sint quod.
435405
ToolsRemoveResponseBody:
436406
title: 'Mediatype identifier: application/vnd.arduino.operation; view=default'
437407
type: object
@@ -458,3 +428,9 @@ definitions:
458428
- name: avrdude
459429
packager: arduino
460430
version: 6.3.0-arduino9
431+
- name: avrdude
432+
packager: arduino
433+
version: 6.3.0-arduino9
434+
- name: avrdude
435+
packager: arduino
436+
version: 6.3.0-arduino9

gen/http/openapi3.json

+1-1
Large diffs are not rendered by default.

gen/http/openapi3.yaml

+12-47
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ paths:
2222
type: array
2323
items:
2424
type: string
25-
example: Eveniet iure nihil optio qui.
25+
example: Rerum et soluta laudantium.
2626
example:
27-
- Et perferendis eveniet voluptas.
28-
- Ut aut illum eaque dolor magni.
29-
- Amet illo veritatis laudantium optio.
27+
- Et deserunt.
28+
- Impedit iusto libero explicabo.
29+
- Dolor adipisci nulla.
30+
- Quam voluptas voluptates expedita rem ipsum.
3031
example:
31-
- Illo enim vero qui rerum ut inventore.
32-
- Dolorem nihil autem minima alias.
32+
- Dignissimos consectetur eos molestiae culpa soluta deserunt.
33+
- Nobis sint dolorem unde.
34+
- Quia doloremque.
35+
- Atque iusto tempore sit quod dolor repellat.
3336
"400":
3437
description: 'invalid_url: url invalid'
3538
content:
@@ -152,10 +155,8 @@ paths:
152155
schema:
153156
$ref: '#/components/schemas/InstallRequestBody'
154157
example:
155-
checksum: Beatae dolor adipisci nulla et quam voluptas.
156158
name: avrdude
157159
packager: arduino
158-
url: Deserunt voluptatem impedit iusto libero.
159160
version: 6.3.0-arduino9
160161
responses:
161162
"200":
@@ -200,15 +201,6 @@ paths:
200201
description: The version of the tool
201202
example: 6.3.0-arduino9
202203
example: 6.3.0-arduino9
203-
requestBody:
204-
required: true
205-
content:
206-
application/json:
207-
schema:
208-
$ref: '#/components/schemas/RemoveRequestBody'
209-
example:
210-
checksum: Ipsa minima quia.
211-
url: Expedita rem ipsum quasi harum nostrum.
212204
responses:
213205
"200":
214206
description: OK response.
@@ -277,7 +269,7 @@ components:
277269
temporary:
278270
type: boolean
279271
description: Is the error temporary?
280-
example: false
272+
example: true
281273
timeout:
282274
type: boolean
283275
description: Is the error a timeout?
@@ -288,8 +280,8 @@ components:
288280
id: 123abc
289281
message: parameter 'p' must be an integer
290282
name: bad_request
291-
temporary: false
292-
timeout: true
283+
temporary: true
284+
timeout: false
293285
required:
294286
- name
295287
- id
@@ -300,10 +292,6 @@ components:
300292
InstallRequestBody:
301293
type: object
302294
properties:
303-
checksum:
304-
type: string
305-
description: "A checksum of the archive. Mandatory when url is present. \n\tThis ensures that the package is downloaded correcly."
306-
example: Sint odio sed consequatur numquam.
307295
name:
308296
type: string
309297
description: The name of the tool
@@ -312,19 +300,13 @@ components:
312300
type: string
313301
description: The packager of the tool
314302
example: arduino
315-
url:
316-
type: string
317-
description: "The url where the package can be found. Optional. \n\tIf present checksum must also be present."
318-
example: Et quo doloremque sapiente atque.
319303
version:
320304
type: string
321305
description: The version of the tool
322306
example: 6.3.0-arduino9
323307
example:
324-
checksum: Mollitia commodi sunt.
325308
name: avrdude
326309
packager: arduino
327-
url: Quae reprehenderit provident provident debitis illo.
328310
version: 6.3.0-arduino9
329311
required:
330312
- name
@@ -341,20 +323,6 @@ components:
341323
status: ok
342324
required:
343325
- status
344-
RemoveRequestBody:
345-
type: object
346-
properties:
347-
checksum:
348-
type: string
349-
description: "A checksum of the archive. Mandatory when url is present. \n\tThis ensures that the package is downloaded correcly."
350-
example: Ea culpa.
351-
url:
352-
type: string
353-
description: "The url where the package can be found. Optional. \n\tIf present checksum must also be present."
354-
example: Odit officiis illo qui quia provident illo.
355-
example:
356-
checksum: Rerum eum esse corporis ex.
357-
url: Molestiae dolor quaerat enim.
358326
ToolCollection:
359327
type: array
360328
items:
@@ -369,9 +337,6 @@ components:
369337
- name: avrdude
370338
packager: arduino
371339
version: 6.3.0-arduino9
372-
- name: avrdude
373-
packager: arduino
374-
version: 6.3.0-arduino9
375340
tags:
376341
- name: indexes
377342
description: The indexes service manages the package_index files

gen/http/tools/client/cli.go

+3-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)