Skip to content

Commit

Permalink
Rename master -> main (#145)
Browse files Browse the repository at this point in the history
Also removed some redundant comments found while doing that.

Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert authored May 18, 2021
1 parent 0b750a8 commit a010b71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand Down
5 changes: 2 additions & 3 deletions open_api/management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ info:
- **[View the specification in *Redoc* (default)](management.html)**
- **[View the specification in *Swagger UI*](management-swagger-ui.html)**
version: 0.25.2
# [ANDERSEKNERT ...what is the best way of templating this...to make sure this is automatically kept up to date with each release.]
x-logo:
url: 'https://github.com/open-policy-agent/opa/blob/master/docs/website/static/img/logos/opa-horizontal-color.png?raw=true'
url: 'https://raw.githubusercontent.com/open-policy-agent/opa/main/docs/website/static/img/logos/opa-horizontal-color.png'
backgroundColor: '#FFFFFF'
altText: 'OPA logo'
contact:
Expand All @@ -31,7 +30,7 @@ paths:
get:
summary: Bundle service
description: |-
OPA expects the service to expose an API endpoint that serves bundles. The bundle API allows clients to download bundles at an arbitrary URL (in combination with `{service_path}`.
OPA expects the service to expose an API endpoint that serves bundles. The bundle API allows clients to download bundles at an arbitrary URL (in combination with `{service_path}`.
For example, using the *[configuration](https://www.openpolicyagent.org/docs/latest/configuration/) example* below will fetch bundles from *https//example.com/service/v1/somedir/bundle.tar.gz*. The URL is constructed as follows:
```
Expand Down
5 changes: 1 addition & 4 deletions open_api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
openapi: 3.0.3
# servers:
# - url: 'http://localhost:8181'
# description: Docker [GAZCONROY - You would normally have a bunch of these: live server, test server, Heroku server and so on. These are only useful if you want to enable 'try it out' features (which is a bit problematic for quite a few OAS API calls]]
# description: Docker
tags:
- name: Policy API
description: 'Allows you to add, remove and modify policy modules. *Policy module identifiers are only used for management purposes. They are not used outside the Policy API.*'
Expand Down Expand Up @@ -868,7 +868,6 @@ components:
items:
properties:
id:
# [ANDERSEKNERT This should probably be something else]
description: The name of a policy module
example: example2
type: string
Expand Down Expand Up @@ -965,7 +964,6 @@ components:
metrics:
type: object
properties:
# [GAZCONROY Some of these are from https://github.com/open-policy-agent/opa/blob/master/docs/content/rest-api.md#performance-metrics, two or three other metrics appear consistently in responses. The 'instrument=true only' responses are indicated in the 'description' field.]
timer_rego_input_parse_ns:
description: Time taken (in nanonseconds) to parse the input
type: number
Expand Down Expand Up @@ -1164,6 +1162,5 @@ components:
type: string
value:
type: string
# [GAZCONROY In terms of the Open API Specification, this is the place you pop in the authentication methods for testing 'try it out' calls (see previous comment).]
securitySchemes: {}
security: []

0 comments on commit a010b71

Please sign in to comment.