cloudapi: make Repository.rhsm optional

I think that we can spare the users of clouadpi of writing "rhsm": "false"
into the requests so I decided to make this property optional and default
to false.

This is nice because it matches the behaviour of Weldr repositories and
sources so we can also use test/data/repositories without any changes after
openapi validation is enabled.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-03-28 16:27:30 +02:00 committed by Ondřej Budai
parent 616258ee25
commit de46e85712
4 changed files with 113 additions and 109 deletions

View file

@ -652,11 +652,11 @@ components:
- vsphere
Repository:
type: object
required:
- rhsm
properties:
rhsm:
type: boolean
default: false
description: 'Determines whether a valid subscription is required to access this repository.'
baseurl:
type: string
format: url