You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ScraperTargetResponse schema is defined as an extension of ScraperTargetRequest. The ScraperTargetRequest has defined the name property:
ScraperTargetRequest:
type: objectproperties:
name:
type: stringdescription: name of the scraper targettype:
type: stringdescription: type of the metrics to be parsedenum: [prometheus]url:
type: stringdescription: url of the metrics endpointexample: http://localhost:9090/metricsorgID:
type: stringdescription: id of the organizationbucketID:
type: stringdescription: id of the bucket to be written
so the name property in ScraperTargetResponse is useless and cause that the client generated by swagger.yml has duplicated properties:
ScraperTargetResponse:
type: objectallOf:
- $ref: "#/components/schemas/ScraperTargetRequest"
- type: objectproperties:
id:
type: stringreadOnly: trueorganization:
type: stringdescription: name of the organizationbucket:
type: stringdescription: name of the bucketname:
type: stringdescription: name of scraper targetlinks:
example:
self: "/api/v2/scrapers/1"owners: "/api/v2/scrapers/1/owners"members: "/api/v2/scrapers/1/members"properties:
self:
$ref: "#/components/schemas/Link"members:
$ref: "#/components/schemas/Link"owners:
$ref: "#/components/schemas/Link"
The name property of ScraperTargetResponse has to be removed.
The text was updated successfully, but these errors were encountered:
The
ScraperTargetResponse
schema is defined as an extension ofScraperTargetRequest
. TheScraperTargetRequest
has defined thename
property:so the
name
property inScraperTargetResponse
is useless and cause that the client generated byswagger.yml
has duplicated properties:The
name
property ofScraperTargetResponse
has to be removed.The text was updated successfully, but these errors were encountered: