Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f46d115
chore: setup ESLint and bump deps (#95)
P0lip Dec 15, 2020
d685016
refactor: move Format component out of Validations (#98)
P0lip Dec 16, 2020
cce4009
test: reorganize shared components tests (#97)
P0lip Dec 16, 2020
8043e17
feat: remove top bar (#96)
P0lip Dec 18, 2020
b21ded8
test: more output tests (#100)
P0lip Dec 18, 2020
0635f1f
feat: integrate @stoplight/json-schema-tree (#91)
P0lip Dec 23, 2020
5c70696
feat: new JSV design (#103)
Feb 10, 2021
39fd8ba
feat: drop expanded prop (#101)
P0lip Feb 15, 2021
42ff7a4
feat: redesign validations (#105)
Feb 16, 2021
80d2350
fix: release (#106)
Feb 16, 2021
512383d
refactor: simplify JSV (#109)
Mar 17, 2021
2d3e951
perf: improve performance (#113)
Mar 19, 2021
a35724b
chore: bump mosaic (#114)
Mar 22, 2021
854d436
feat: oneOf/anyOf as a dropdown, attempt no 2 (#110)
Mar 25, 2021
bb252ae
fix: styling issues (#117)
Mar 29, 2021
04293bf
feat: prefix choices with an index (#118)
Mar 29, 2021
beb54c2
fix: bump json-schema-tree to 1.1.2 (#121)
mmiask Apr 1, 2021
5e8af68
chore(codeowners): add undefined to CODEOWNERS (#124)
Apr 2, 2021
a60a6d3
fix: handling nested schemas with allof (#128)
mpodlasin Apr 7, 2021
3c5029e
fix: ui fixes (#127)
Apr 7, 2021
01724d4
fix: divider (#132)
Apr 9, 2021
b7d90bb
feat: do not display min/max values for oas formats (#131)
P0lip Apr 9, 2021
a22e20f
feat: hide examples option (#134)
Apr 14, 2021
5d3acb6
feat: special treatment for top level rows (#135)
Apr 22, 2021
50ca5cd
fix: pin mosaic to exact version (#137)
mmiask Apr 26, 2021
30b8a5a
feat: accept JSON Schema Draft 6 & Draft 7 (#139)
P0lip Apr 28, 2021
aaac87f
fix: bump json-schema-tree to 2.0.1 (#144)
mpodlasin May 19, 2021
9893a2f
feat: add Markdown support in descriptions (#146)
mmiask May 25, 2021
12a4601
fix: dark mode validations (#147)
May 31, 2021
266fcf2
fix: remove ui-kit (#149)
Jun 4, 2021
0f2a158
fix: esm build (#150)
Jun 7, 2021
5fe5348
fix: set markdown-viewer fontSize correctly (#148)
marbemac Jun 8, 2021
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
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": "@stoplight",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"no-param-reassign": "off",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-floating-promises": ["error", { "ignoreVoid": true }],
"no-console": "warn"
},
"overrides": [
{
"files": ["*.spec.{ts,tsx}"],
"env": {
"jest": true
}
}
]
}
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @stoplightio/void-crew
* @stoplightio/void-crew @stoplightio/undefined
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('@stoplight/eslint-config/prettier.config'),
};
2 changes: 1 addition & 1 deletion __mocks__/react.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/airbnb/enzyme/issues/1875#issuecomment-451177239
const r = require.requireActual('react');
const r = jest.requireActual('react');

module.exports = {
...r,
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
moduleNameMapper: {
'\\.css$': '<rootDir>/__mocks__/styleMock.js'
},
testMatch: ['<rootDir>/src/**/__tests__/*.(ts|js)?(x)'],
testMatch: ['<rootDir>/src/**/__tests__/*.(spec|test).(ts|js)?(x)'],
transform: {
'\\.tsx?$': 'ts-jest'
},
Expand Down
104 changes: 56 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"**/*"
],
"engines": {
"node": ">=10.0"
"node": ">=10.18"
},
"scripts": {
"build": "sl-scripts bundle --sourcemap",
"postbuild": "yarn test.packaging",
"build.docs": "build-storybook -c .storybook -o docs-auto",
"commit": "git-cz",
"lint": "tslint -c tslint.json -p tsconfig.json 'src/**/*.{ts,tsx}'",
"lint": "eslint 'src/**/*.{ts,tsx}'",
"lint.fix": "yarn lint --fix",
"release": "sl-scripts release",
"release.docs": "sl-scripts release:docs",
Expand All @@ -32,65 +33,69 @@
"test": "jest",
"test.prod": "yarn lint && yarn test --coverage --maxWorkers=2",
"test.update": "yarn test --updateSnapshot",
"test.watch": "yarn test --watch"
"test.watch": "yarn test --watch",
"test.packaging": "node -e \"require('./dist/index.js')\" && node --input-type=module -e \"import './dist/index.mjs'\"",
"size-limit": "size-limit"
},
"peerDependencies": {
"@stoplight/markdown-viewer": "^3",
"@stoplight/ui-kit": "^3",
"mobx": "^5",
"@stoplight/markdown-viewer": "^5.0.0-beta.5",
"@stoplight/mosaic": "^1.0.0-beta.59",
"react": ">=16.8",
"react-dom": ">=16.8"
},
"dependencies": {
"@stoplight/json": "^3.5.1",
"@stoplight/json-schema-merge-allof": "^0.7.2",
"@fortawesome/free-solid-svg-icons": "^5.15.2",
"@stoplight/json": "^3.10.0",
"@stoplight/json-schema-tree": "^2.0.1",
"@stoplight/react-error-boundary": "^1.0.0",
"@stoplight/tree-list": "^5.0.3",
"@types/json-schema": "^7.0.7",
"classnames": "^2.2.6",
"lodash": "^4.17.15",
"mobx-react-lite": "^1.4.1",
"pluralize": "^8.0.0"
"lodash": "^4.17.19"
},
"devDependencies": {
"@emotion/core": "^10.0.16",
"@emotion/styled": "^10.0.15",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-typescript": "^3.1.1",
"@sambego/storybook-state": "^1.3.6",
"@stoplight/markdown-viewer": "^3.5.5",
"@stoplight/scripts": "^8.2.0",
"@stoplight/storybook-config": "^2.0.5",
"@stoplight/types": "11.0.0",
"@stoplight/ui-kit": "3.0.0-beta.2",
"@types/classnames": "^2.2.9",
"@types/enzyme": "3.10.3",
"@types/jest": "^24.0.18",
"@types/json-schema": "^7.0.3",
"@size-limit/preset-big-lib": "^4.11.0",
"@stoplight/eslint-config": "^1.2.0",
"@stoplight/markdown-viewer": "^5.0.0-beta.5",
"@stoplight/mosaic": "^1.0.0-beta.59",
"@stoplight/mosaic-code-viewer": "^1.0.0-beta.59",
"@stoplight/scripts": "9.0.2",
"@stoplight/storybook-config": "^2.0.6",
"@stoplight/types": "^11.9.0",
"@types/classnames": "^2.2.11",
"@types/enzyme": "^3.10.8",
"@types/jest": "^26.0.18",
"@types/lodash": "^4.14.149",
"@types/node": "^12.7.2",
"@types/pluralize": "^0.0.29",
"@types/react": "16.9.2",
"@types/react-dom": "16.9.0",
"@types/treeify": "^1.0.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"copyfiles": "^2.1.1",
"emotion-theming": "^10.0.14",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.14.0",
"enzyme-to-json": "3.4.0",
"jest": "^24.9.0",
"jest-enzyme": "7.1.0",
"mobx": "^5.13.0",
"prettier": "^1.19.1",
"react": "16.9.0",
"react-dom": "16.9.0",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"copyfiles": "^2.4.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"enzyme-to-json": "^3.6.1",
"eslint": "^7.15.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^5.0.2",
"fast-glob": "^3.2.4",
"jest": "^26.6.2",
"jest-enzyme": "^7.1.2",
"prettier": "^2.2.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rollup-plugin-terser": "^5.3.0",
"size-limit": "^4.11.0",
"treeify": "^1.1.0",
"ts-jest": "^24.0.2",
"tslint": "^5.19.0",
"tslint-config-stoplight": "^1.4.0",
"typescript": "^4.0.3"
"ts-jest": "^26.4.4",
"typescript": "^4.0.5"
},
"lint-staged": {
"*.{ts,tsx}$": [
Expand All @@ -117,9 +122,12 @@
"extends": "@stoplight/scripts/release"
},
"typings": "src/index.d.ts",
"prettier": {
"printWidth": 120,
"trailingComma": "es5",
"singleQuote": true
}
"size-limit": [
{
"path": "dist/index.esm.js",
"limit": "150 KB",
"brotli": true,
"running": false
}
]
}
42 changes: 0 additions & 42 deletions rollup.config.js

This file was deleted.

90 changes: 0 additions & 90 deletions src/__fixtures__/allOf/allOf-resolved.json

This file was deleted.

17 changes: 17 additions & 0 deletions src/__fixtures__/arrays/of-arrays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "array",
"items": {
"type": "object",
"properties": {
"bar": {
"type": "integer"
},
"foo": {
"type": "array",
"items": {
"type": "array"
}
}
}
}
}
Loading