-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Labels
bug-fix-vNextBug fixes need to be merged into both master and vNext. Use this tag for vNext bug fix PR.Bug fixes need to be merged into both master and vNext. Use this tag for vNext bug fix PR.help wantedpriority:p2Medium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daysMedium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 days
Description
executing:
kiota generate -l csharp -d ./basic.yaml -o ./basic
with this definition:
openapi: 3.0.0
info:
title: Sample API
description: Lorem Ipsum
version: 1.0.0
servers:
- url: http://api.example.com/v1
description: Lorem Ipsum
paths:
/issues:
get:
summary: Returns a list of issues.
description: Lorem Ipsum
responses:
"200":
description: Lorem Ipsum
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: "#/components/schemas/issueData"
example:
data:
- issuedAt: "2023-10-12"
components:
schemas:
issueData:
type: object
title: Issue Data
description: Information about the issue.
properties:
issuedAt:
type: string
format: date
description: Lorem Ipsum
example: "2023-10-12"
I get this warning:
warn: Kiota.Builder.KiotaBuilder[0]
OpenAPI warning: #/paths/~1issues/get/responses/200/content/application~1json/example/data/0/issuedAt - Data and type mismatch found.
If I dereference it, it works as expected without warnings. I know it's just a warning, but maybe a symptom of some larger issue.
Metadata
Metadata
Assignees
Labels
bug-fix-vNextBug fixes need to be merged into both master and vNext. Use this tag for vNext bug fix PR.Bug fixes need to be merged into both master and vNext. Use this tag for vNext bug fix PR.help wantedpriority:p2Medium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daysMedium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 days