Open ljwall opened 6 months ago
Digging some more, if I update myip.yaml
to include a responses
block as follows:
openapi: 3.1.0
info:
title: My IP
version: 0.0.1
paths:
/:
get:
summary: Get your own IP
operationId: getMyIP
responses:
"200":
description: text body containing your IP address
then it all works.
I don't think (based on https://swagger.io/specification/#operation-object) that the responses block should be required?
This tool looks really cool! Unsure if this is a bug or I'm doing something wrong, but I'm unable to sync a basic OpenAPI spec file
Process
On Ubuntu 20.04:
Update config to
create file
/home/liam/myip.yaml
withFinally run:
./restish -v api sync myip
Result