Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit e51e535

Browse files
committed
fixes for openapi 3 and 3.1
1 parent 8fb0a59 commit e51e535

40 files changed

+13621
-270
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Pull desired version of node docker to use as builder base
2+
# https://hub.docker.com/_/node
3+
FROM node:8
4+
5+
# Set build dir and copy project files
6+
RUN mkdir -p /src
7+
VOLUME /src
8+
WORKDIR /scripts
9+
10+
COPY --chmod=755 <<EOT entrypoint.sh
11+
#!/bin/bash
12+
cd /src && npm i && ng serve --host 0.0.0.0
13+
EOT
14+
15+
ENV PATH=/src/node_modules/@angular/cli/bin/:$PATH
16+
17+
EXPOSE 4200
18+
ENTRYPOINT ["/scripts/entrypoint.sh"]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,21 @@ api-swagger is the root of the tree. If you use this element, it basically injec
7171
### api-method
7272
api-method is for showing what a url-verb combo does, i.e GET - /values
7373
```html
74-
<api-method [operation]="operationObject" [swagger]="swagger" verb="get" urlTemplate="/values/{id}"></api-method>
74+
<api-method [operation]="operationObject" [document]="document" verb="get" urlTemplate="/values/{id}"></api-method>
7575
```
7676

7777
### api-model
7878
api-model is for showing the schema and example of a request or response model
7979
```html
80-
<api-model [schema]="schemaObject" [swagger]="swagger"></api-swagger>
80+
<api-model [schema]="schemaObject" [document]="document"></api-swagger>
8181
```
8282

8383
## Providers
8484

8585
There are a couple of injectable providers that can be used.
8686

87-
### SwaggerService
88-
SwaggerService should be used to make a request to a swagger 2.0 endpoint.
87+
### DocumentService
88+
DocumentService should be used to make a request to a swagger 2.0 endpoint.
8989

9090
### ErrorService
9191
Any errors reported into this service get put into the error panel.

0 commit comments

Comments
 (0)