Skip to content

Commit

Permalink
Merge branch 'main' into client-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspoignant authored May 14, 2024
2 parents ecffd17 + 1d31e7b commit 62e7af6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/spec-validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: OpenAPI spec validation action

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run OpenAPI spec validation
run: |
docker run --rm -v $PWD:/spec redocly/cli lint ./service/openapi.yaml
echo "{exit_code}={$?}" >> $GITHUB_STATE
4 changes: 4 additions & 0 deletions service/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
openapi: 3.1.0
servers:
- url: /
info:
version: 0.1.0
title: OpenFeature Remote Evaluation Protocol (OFREP)
Expand Down Expand Up @@ -49,6 +51,7 @@ paths:
$ref: '#/components/schemas/generalErrorResponse'
/ofrep/v1/evaluate/flags/{key}:
post:
summary: OFREP single flag evaluation contract
description: OFREP single flag evaluation request
parameters:
- name: key
Expand Down Expand Up @@ -102,6 +105,7 @@ paths:
$ref: '#/components/schemas/generalErrorResponse'
/ofrep/v1/evaluate/flags:
post:
summary: OFREP bulk flag evaluation contract
description: OFREP bulk evaluation request
parameters:
- in: header
Expand Down

0 comments on commit 62e7af6

Please sign in to comment.