diff --git a/api.json b/api.json index b37a4f9..9c88ea6 100644 --- a/api.json +++ b/api.json @@ -5,44 +5,6 @@ "version": "1.0.0" }, "paths": { - "/users/{userId}": { - "get": { - "tags": [ - "user" - ], - "summary": "Fetch user info.", - "operationId": "get_user_by_id", - "parameters": [ - { - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "successful operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/User" - } - } - } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" - } - } - } - }, "/version": { "get": { "summary": "Fetch version info.", @@ -89,23 +51,6 @@ "request_id" ] }, - "User": { - "description": "User", - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ] - }, "VersionInfo": { "description": "Version and build information", "type": "object", @@ -135,10 +80,5 @@ } } } - }, - "tags": [ - { - "name": "user" - } - ] + } } diff --git a/flake.nix b/flake.nix index 7f35a94..3858800 100644 --- a/flake.nix +++ b/flake.nix @@ -49,7 +49,6 @@ root = ./.; fileset = pkgs.lib.fileset.unions [ ./api.json - ./controller/.sqlx (craneLib.fileset.commonCargoSources ./.) ]; }; @@ -117,7 +116,6 @@ formatter = (treefmt-nix.lib.evalModule pkgs { projectRootFile = "flake.nix"; - programs = { nixfmt.enable = true; nixfmt.package = pkgs.nixfmt-rfc-style; diff --git a/justfile b/justfile index ce609e7..e081281 100644 --- a/justfile +++ b/justfile @@ -50,10 +50,6 @@ machete: open-api: cargo xtask open-api -# Update OpenAPI spec -open-api-update: - cargo xtask open-api > api.json - # Run all tests check: check-nix