Comments (13)
Maybe a week or two ago; I'll update and see if I can come up with some good examples.
from widdershins.
Hi @rjstanford thanks for raising this! Can I ask a couple of questions?
- Which version are you using (as I've recently updated the
openapi-sampler
dependency)? - Is it the schema property table or the example which displays nothing, or both?
- Do you have a small sample I can test with (e.g. in a gist)? No matter if not.
Dropdowns for discriminator
might be tricky, as we create completely static markdown, but possibly something is doable with html details
and summary
tags... Though this would depend on browser support.
from widdershins.
The v3.0 beta of widdershins has much better support for oneOf
, anyOf
, allOf
and not
(although I'm still debating the best visual way of rendering them). Are you able to test v3, either from a github clone, or by installing widdershins@beta
?
from widdershins.
from widdershins.
Many thanks.
from widdershins.
[email protected] released with a couple of new options and fixes.
from widdershins.
Widdershins v3.0.0 has just been released with improved oneOf
, anyOf
, allOf
, not
support.
from widdershins.
I'm experiencing the same problem for asyncapi. After using oneOf or anyOf, the message headers and payload (including the examples) are no longer visible
from widdershins.
Thanks, will take a look.
from widdershins.
This is still broken in 4.0.1
from widdershins.
Does anyone have an example they can share which shows the problem?
from widdershins.
Does anyone have an example they can share which shows the problem?
openapi: 3.0.0
info:
title: Sample of allOf 's Bug
version: 0.1.0
components:
schemas:
Record:
properties:
id:
type: integer
minimum: 1
example: 1
created_at:
type: string
format: date-time
Hello:
properties:
message:
type: string
description: Hello world
paths:
/hello:
get:
summary: Hello world
responses:
200:
description: Ok
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/Record"
- $ref: "#/components/schemas/Hello"
config:
{
"language_tabs": [{"shell" : "CURL"}],
"language_clients": [{"shell" : "CURL"}]
}
Output look like:
GET /hello
Hello world
Example responses
200 Response
null
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Ok | Inline |
Response Schema
---from widdershins.
This is still a problem for me. I'd be glad to post an example, but the one above me perfectly showcases the problem.
from widdershins.
Related Issues (20)
- Support custom media type HOT 6
- Add option "--header-offset"
- Add support for OpenRPC
- Support for AsyncAPI version 2.2
- headingLevel is getting overriden to default value i.e 2.
- Vulnerability for package [email protected] in widdershins
- Upgrade to [email protected] to fix yargs-parser vulnerability
- CODE SAMPLES ERROR WIDDERSHINS + SLATE
- node can't find widdershins module after npm install is run HOT 2
- Any programmable API? HOT 1
- shins dependency is including vulnerable jquery version 3.2.1
- Missing body parameter code for API languages other than JavaScript HOT 2
- User defined data fields to be used in templates
- user_template is not well defined HOT 1
- Could not get ToC to generate
- Generate Markdown with no html headers
- Bump version of httpsnippet
- Error picking up user templates HOT 1
- Multiline markdown in response examples breaks table in Markdown
- Resolving external refs and showing as links
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 widdershins.