{"section":"http-methods","title":"HTTP Methods Rules","description":"Rules for proper HTTP method usage","totalRules":5,"spectralRules":[{"name":"get-no-request-body","severity":"error","message":"GET operations must not have a request body","given":"$.paths[*].get","then":{"field":"requestBody","function":"falsy"}},{"name":"delete-no-request-body","severity":"error","message":"DELETE operations must not have a request body","given":"$.paths[*].delete","then":{"field":"requestBody","function":"falsy"}},{"name":"post-should-have-request-body","severity":"info","message":"POST operations should have a request body","given":"$.paths[*].post","then":{"field":"requestBody","function":"truthy"}},{"name":"put-should-have-request-body","severity":"warn","message":"PUT operations should have a request body","given":"$.paths[*].put","then":{"field":"requestBody","function":"truthy"}},{"name":"patch-should-have-request-body","severity":"warn","message":"PATCH operations should have a request body","given":"$.paths[*].patch","then":{"field":"requestBody","function":"truthy"}}],"rules":[{"id":"get-no-body","requirement":"MUST NOT","rule":"GET operations must not have a request body","severity":"error","spectralRule":"get-no-request-body","rationale":"GET is defined as a safe, idempotent method for retrieval only"},{"id":"delete-no-body","requirement":"MUST NOT","rule":"DELETE operations must not have a request body","severity":"error","spectralRule":"delete-no-request-body"},{"id":"post-has-body","requirement":"SHOULD","rule":"POST operations should have a request body","severity":"info","spectralRule":"post-should-have-request-body"},{"id":"put-has-body","requirement":"SHOULD","rule":"PUT operations should have a request body","severity":"warn","spectralRule":"put-should-have-request-body"},{"id":"patch-has-body","requirement":"SHOULD","rule":"PATCH operations should have a request body","severity":"warn","spectralRule":"patch-should-have-request-body"}]}