Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Disallow reserved chars on id fields #529

Merged
merged 18 commits into from
May 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: node_js
node_js:
- '6'
- '8'
- '10'

dist: trusty
sudo: required
Expand Down
15 changes: 8 additions & 7 deletions docs/swagger/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta charset="UTF-8">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="./swagger-udaru.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<link rel="stylesheet" type="text/css" href="./swagger-ui-dist/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="./swagger-udaru.css" >
<link rel="icon" type="image/png" href="./swagger-ui-dist/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./swagger-ui-dist/favicon-16x16.png" sizes="16x16" />
<style>
html
{
Expand All @@ -35,14 +35,15 @@
<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script src="./swagger-ui-dist/swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-dist/swagger-ui-standalone-preset.js"> </script>
<script src='./swagger-json.js' type="text/javascript"></script>
<script>
window.onload = function() {

// Build a system
const ui = SwaggerUIBundle({
url: "http://petstore.swagger.io/v2/swagger.json",
spec: swaggerJSON,
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger/swagger-json.js

Large diffs are not rendered by default.

93 changes: 0 additions & 93 deletions docs/swagger/swagger-ui-bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/swagger/swagger-ui-bundle.js.map

This file was deleted.

22 changes: 22 additions & 0 deletions docs/swagger/swagger-ui-dist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Swagger UI Dist
[![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)

# API

This module, `swagger-ui-dist`, exposes Swagger-UI's entire dist folder as a dependency-free npm module.
Use `swagger-ui` instead, if you'd like to have npm install dependencies for you.

`SwaggerUIBundle` and `SwaggerUIStandalonePreset` can be imported:
```javascript
import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist"
```

To get an absolute path to this directory for static file serving, use the exported `getAbsoluteFSPath` method:

```javascript
const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()

// then instantiate server that serves files from the swaggerUiAssetPath
```

For anything else, check the [Swagger-UI](https://github.com/swagger-api/swagger-ui) repository.
61 changes: 61 additions & 0 deletions docs/swagger/swagger-ui-dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {

// Build a system
const ui = SwaggerUIBundle({
url: "http://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})

window.ui = ui
}
</script>
</body>
</html>
118 changes: 118 additions & 0 deletions docs/swagger/swagger-ui-dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"_args": [
[
{
"raw": "swagger-ui-dist@^3.14.1",
"scope": null,
"escapedName": "swagger-ui-dist",
"name": "swagger-ui-dist",
"rawSpec": "^3.14.1",
"spec": ">=3.14.1 <4.0.0",
"type": "range"
},
"/Users/cianfoley/Documents/NearForm/dev/udaru/swagger-generation-issue/udaru"
]
],
"_from": "swagger-ui-dist@>=3.14.1 <4.0.0",
"_id": "swagger-ui-dist@3.14.1",
"_inCache": true,
"_location": "/swagger-ui-dist",
"_nodeVersion": "6.9.5",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/swagger-ui-dist_3.14.1_1525487810656_0.12588224658532243"
},
"_npmUser": {
"name": "swagger",
"email": "apiteam@swagger.io"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "swagger-ui-dist@^3.14.1",
"scope": null,
"escapedName": "swagger-ui-dist",
"name": "swagger-ui-dist",
"rawSpec": "^3.14.1",
"spec": ">=3.14.1 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/",
"/swagger-gen"
],
"_resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-3.14.1.tgz",
"_shasum": "2fd6adcaa484133555d59cf55b11a704c1da1bc3",
"_shrinkwrap": null,
"_spec": "swagger-ui-dist@^3.14.1",
"_where": "/Users/cianfoley/Documents/NearForm/dev/udaru/swagger-generation-issue/udaru",
"bugs": {
"url": "https://github.com/swagger-api/swagger-ui/issues"
},
"contributors": [
{
"url": "in alphabetical order"
},
{
"name": "Anna Bodnia",
"email": "anna.bodnia@gmail.com"
},
{
"name": "Buu Nguyen",
"email": "buunguyen@gmail.com"
},
{
"name": "Josh Ponelat",
"email": "jponelat@gmail.com"
},
{
"name": "Kyle Shockey",
"email": "kyleshockey1@gmail.com"
},
{
"name": "Robert Barnwell",
"email": "robert@robertismy.name"
},
{
"name": "Sahar Jafari",
"email": "shr.jafari@gmail.com"
}
],
"dependencies": {},
"description": "[![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "2fd6adcaa484133555d59cf55b11a704c1da1bc3",
"tarball": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-3.14.1.tgz",
"fileCount": 17,
"unpackedSize": 11074075,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7RjECRA9TVsSAnZWagAA5vkP/3065QmnmYDMOqDbYBH0\neOtUGWYOtB1VEqI/p2js7v/v3qvbYRwmdc58qSCfNG5b2oRV3/GM14MsZS6q\nPem/xl6pPbvvMa63PKvHbLVYci3Hqp4kd0lQL3JIdzfRT43KBZMy/0EVYOoE\nRAw1aEiLo4OLv4LPVnt0bim2HrYqjZs24/7RECOHFJPrAg61GnqDhDIVXt5R\nilgMMZJ21G1r2egPZmk1PmD95V1njqdWrBrrppGhO2/TQwbmSolW+S01JiRo\n9tPw/SwoZfSbokL6ax7KoCv3abw3Em2DUgoIGJp5j6/2ljR11zQstWmVh648\nPkrhkGhDMJmrXPvwASDB2r4VtcxFfqVNzwYEJnG+OAJUiA2FdznvBRlmgPh7\nqyxLPICBcBBDJ/euAlF2XtavwcJD4lr/EEJIv0bNWxeLGlGrPw16kAoHtMzo\nmTT224PkYq0cufXSCARuawGfLV28/HgLDy1mPgvMasQG0VmR9vI8z6kpe0xo\ndEAlRBogj5q0f1bVEcCN/6/YYRVfqIHBc1ha+aep+SEqqYZBK1pJVmusMhAg\nDoFDCCgX+jVqEIPCwuUKa2H2uyZeXs5vlmHIhP1FdfOoOKdFZQnSrJP7Hgt4\nzzi0Lk5HNq3CzPP4QJz2U+8fRaC8Fa3OyWDYqOFWS4mrUpa2t1w6dZDYXsWt\npZdr\r\n=B4kH\r\n-----END PGP SIGNATURE-----\r\n"
},
"homepage": "https://github.com/swagger-api/swagger-ui#readme",
"license": "Apache-2.0",
"main": "index.js",
"maintainers": [
{
"name": "kyleshockey",
"email": "kyle.shockey1@gmail.com"
},
{
"name": "swagger",
"email": "apiteam@swagger.io"
},
{
"name": "swagger-api",
"email": "apiteam@swagger.io"
}
],
"name": "swagger-ui-dist",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/swagger-api/swagger-ui.git"
},
"scripts": {},
"version": "3.14.1"
}
131 changes: 131 additions & 0 deletions docs/swagger/swagger-ui-dist/swagger-ui-bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/swagger/swagger-ui-dist/swagger-ui-bundle.js.map

Large diffs are not rendered by default.

Loading