Comments (3)
I authored a pull request that only adds the plugins extensions when generating plugins, this should reduce the blast radius. #4840
But the "bug" is actually in OAI.net, I opened an issue over there. microsoft/OpenAPI.NET#1695
from kiota.
This is a curious one. The OpenAPI description parses fine with our parser:
hidi validate -d https://storage.googleapis.com/libpod-master-releases/swagger-latest.yaml
info: Microsoft.OpenApi.Hidi.Handlers.ValidateCommandHandler[0]
=> Calculating statistics
Path Items: 165
Operations: 173
Parameters: 480
Request Bodies: 33
Responses: 173
Links: 0
Callbacks: 0
Schemas: 3350
but trying to parse this with the Kiota gives the same error
kiota show -d https://storage.googleapis.com/libpod-master-releases/swagger-latest.yaml
crit: Kiota.Builder.KiotaBuilder[0]
error showing the description: Specified argument was out of the range of valid values. (Parameter 'source')
from kiota.
This issue is caused by the use of the x-logo
extension. The description you shared looks like this:
x-logo:
- url: https://raw.githubusercontent.com/containers/libpod/main/logo/podman-logo.png
- altText: Podman logo
However, we were expecting an object, not an array, and we don't support altText
x-logo:
url: https://raw.githubusercontent.com/containers/libpod/main/logo/podman-logo.png
We recently started using x-logo in some of our own projects and unfortunately, nobody has registered the extension here. https://spec.openapis.org/registry/extension/index.html to describe what it is supposed to look like.
We also should not completely fail if the x-logo doesn't match our expected format.
Thanks for reporting this, we will work on fixing it, and getting a registration published. If someone else doesn't do it first :-)
from kiota.
Related Issues (20)
- Update info command to show bundle dependencies HOT 3
- missing UntypedNode import in Java, in various places HOT 4
- Kiota plugin edit does not update plugin if file extension has not changed HOT 5
- add github branch policy definition
- Schema name conflict causing getter and setter ( {schemaName}_{propertyName}able ) interfaces to not be generated HOT 2
- Stack overflow Segmentation failure error with v1.18 when class presents references to itself HOT 3
- TypeScript - anyOf/oneOf arrays do not emit the correct serialization and deserialization information HOT 7
- PHP - anyOf/oneOf primitive type array serialization wrong
- VS Code extension supports Declarative Copilot
- VS Code extension should leave the preview status! HOT 2
- Version 1.18.0 causes Stack overflow HOT 1
- OpenAPI descriptions needs to be < 3.1.0 HOT 2
- Circular references in open API spec are not supported HOT 2
- Query Parameters are not set when calling a GetAll endpoint HOT 9
- Can't create a DC + Plugin with TTK + Kiota for Github API HOT 3
- Can't create a new plugin using the same OAD HOT 6
- Sever url is not correct if input a spec path in "search" when add api description HOT 6
- StackOverflowException during kiota update --clean-output -o Generated HOT 1
- [VS Code] When selecting an API, we should notify the user of the next step
- Update icons in VS Code extension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiota.