From 6657a7a3dbb6d592d49b89b1d18c7ebd36e664ab Mon Sep 17 00:00:00 2001 From: Simeon Romanov Date: Fri, 13 Oct 2023 02:13:11 +0300 Subject: [PATCH] remove json schema --- api/openapi.json | 35 ----------------------------------- backend/gen_openapi.rs | 2 -- 2 files changed, 37 deletions(-) delete mode 100644 api/openapi.json diff --git a/api/openapi.json b/api/openapi.json deleted file mode 100644 index b132c891..00000000 --- a/api/openapi.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "openapi": "3.0.3", - "info": { - "title": "backend", - "description": "Bob Management GUI: Backend", - "contact": { - "name": "Romanov Simeon ArchArcheoss@proton.me" - }, - "license": { - "name": "" - }, - "version": "0.0.0" - }, - "paths": { - "/root": { - "get": { - "tags": [ - "crate" - ], - "operationId": "root", - "responses": { - "200": { - "description": "Hello Bob!" - } - } - } - } - }, - "tags": [ - { - "name": "bob", - "description": "BOB management API" - } - ] -} \ No newline at end of file diff --git a/backend/gen_openapi.rs b/backend/gen_openapi.rs index 409dac9a..8f8e4cf8 100644 --- a/backend/gen_openapi.rs +++ b/backend/gen_openapi.rs @@ -2,8 +2,6 @@ use std::fs; use utoipa::OpenApi; // in ./src/gen_openapi.rs fn main() { - let doc = backend::ApiDoc::openapi().to_pretty_json().unwrap(); - let _ = fs::write("./api/openapi.json", doc); let doc = backend::ApiDoc::openapi().to_yaml().unwrap(); let _ = fs::write("./api/openapi.yaml", doc); }