Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMAP-8: Json-editor v2.2.1 #50

Merged
merged 44 commits into from
May 19, 2020
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
57fc236
avanzamento
May 8, 2020
78d066b
fix
May 8, 2020
f676a33
remove html example
May 8, 2020
b485dfb
fix proptypes
May 8, 2020
ecb372e
avanzamento
May 8, 2020
dcb2575
avanzamento
May 8, 2020
04c5b12
fix(MMAP-8): use 2.2.1 version
May 11, 2020
5618101
fix(MMAP-8): v2 json-editor
May 11, 2020
319b04d
change(MMAP-8): change Params test
May 11, 2020
5c9869c
Fix lint
May 11, 2020
505a9c0
Update packages/api-explorer/src/JsonForm/antd-theme-json-editor.js
dibericky May 12, 2020
63ecf38
chore(MMAP-8): resolved discussions
May 12, 2020
b658857
fix(MMAP-8): readded petstore with fix to use it
May 12, 2020
1f327ef
update(MMAP-8): fetch-har 2.2.0
May 12, 2020
e174ebf
minor(MMAP-8): refactor
May 12, 2020
46ee108
add alert error message
May 12, 2020
db9c033
refactor(MMAP-8): moved to external file
May 12, 2020
6aa9e2a
merge with master
May 12, 2020
e0f9669
improve test coverage
May 12, 2020
532e52a
en / it strings
May 13, 2020
531bfb3
external json example
May 13, 2020
e6fb8a4
rem(MMAP-8): removed forcePanelRender prop
fredmaggiowski May 13, 2020
e8f40e2
Merge branch 'MMAP-8-editor-v2' of https://github.com/mia-platform/ap…
May 13, 2020
12472fb
add example of bug
May 13, 2020
036814c
jsonform index test indent object
May 13, 2020
7b065fa
minor
May 13, 2020
92a55b2
jsonform test name & remove json case
May 13, 2020
7bd4972
restore global.open
May 13, 2020
fab0dbd
removed useless async
May 13, 2020
1db24af
removed space
May 13, 2020
8455ef7
fix huge jsonschema definitions
May 13, 2020
1091012
fix error
May 14, 2020
dd995d8
wip
May 14, 2020
6e2aa8f
clean code
May 18, 2020
17962b1
fix not scheme
May 18, 2020
fcc2f67
removed(MMAP-8): console log
May 18, 2020
b7ac5a3
add(MMAP-8): field example
May 18, 2020
424456d
Update packages/api-explorer/src/JsonForm/refReplacer.js
dibericky May 19, 2020
a0247b2
change(MMAP-8): increased max_depth
May 19, 2020
32b5182
Update packages/api-explorer/src/JsonForm/refReplacer.js
dibericky May 19, 2020
6bd2976
rename testdata and clean dependencies
May 19, 2020
cac8fe8
fix(MMAP-8): test
May 19, 2020
10c0a64
update json-editor
May 19, 2020
1eb75aa
fix import
May 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"presets": [
["@babel/env", {
"targets": {
"browsers": ["last 2 versions"]
"browsers": ["last 2 versions"],
"esmodules": true
davidebianchi marked this conversation as resolved.
Show resolved Hide resolved
}
}],
"@babel/react"
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/dubnium
lts/erbium
2 changes: 1 addition & 1 deletion example/reference/src/Preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require('../../../packages/api-explorer/api-explorer.css');
class Preview extends React.Component {
componentDidMount() {
const searchParams = new URLSearchParams(window.location.search);
this.props.fetchSwagger(searchParams.get('url') || '../swagger-files/petstore.json');
this.props.fetchSwagger(searchParams.get('url') || '../swagger-files/openapi3.json');
}
render() {
const { status, docs, oas, oauth } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion example/src/ApiList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ApiList extends React.Component {

this.state = {
apis: localDirectory,
selected: parse(document.location.search.replace('?', '')).selected || 'swagger-files/petstore.json',
selected: parse(document.location.search.replace('?', '')).selected || 'swagger-files/openapi3.json',
};

this.changeApi = this.changeApi.bind(this);
Expand Down
1 change: 0 additions & 1 deletion example/src/Demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function Demo({ fetchSwagger, status, docs, oas, oauth }) {
glossaryTerms={[{ term: 'apiKey', definition: 'This is a definition' }]}
stripSlash={false}
defaultOpen={false}
forcePanelRender
/>
)
}
Expand Down
1 change: 0 additions & 1 deletion example/src/SpecFetcher.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const React = require('react');
const swagger2openapi = require('swagger2openapi');

const createDocs = require('../../packages/api-explorer/lib/create-docs');

function withSpecFetching(Component) {
Expand Down
79 changes: 79 additions & 0 deletions example/swagger-files/all_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"openapi": "3.0.0",
"servers": [
{
"url": "http://httpbin.org"
}
],
"info": {
"version": "1.0.0",
"title": "Boolean without double description"
},
"paths": {
"/post": {
"post": {
"summary": "All types",
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "Successful"
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "This description should only appear once"
},
"enum": {
"type": "string",
"enum": ["PUBLIC", "DRAFT"],
"default": "PUBLIC"
},
"integer": {
"type": "integer"
},
"number": {
"type": "number"
},
"string": {
"type": "string"
},
"not_string": {
"not": {
"type": "string"
}
},
"object": {
"type": "object",
"properties": {}
},
"array": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"application/xml": {
"schema": {
"$ref": "#/components/schemas/Pet"
}
}
}
}
}
}
},
"x-explorer-enabled": true,
"x-samples-enabled": true,
"x-samples-languages": ["curl", "node", "ruby", "javascript", "python"]
}

Loading