Skip to content

v1.4.3: GraphQL Runtime Validation & OpenAPI Hardening

Choose a tag to compare

@github-actions github-actions released this 30 Jul 10:20

Added

  • GraphQL Runtime Validation: Extends the Breaching Detector (smile test) to natively support GraphQL schemas. It parses .graphql SDL files, automatically generates shallow queries (using __typename) for parameter-less endpoints on the Query root type, dispatches them via POST, and verifies the response structure is free of GraphQL errors.
  • New OpenAPI Rule: valid-examples: Added strict static validation for OpenAPI examples. If you declare a schema property (e.g., type: integer) and provide an example that violates it (e.g., example: "foo"), smile will now block the build.
  • New OpenAPI Rule: require-security: Added strict static validation enforcing that every endpoint either has a security requirement defined globally/locally, or explicitly overrides it to public using security: []. Prevents accidental exposure of unprotected APIs.
  • New OpenAPI Rule: no-http-verbs-in-path: Added a REST best-practice rule that triggers warnings if paths contain verbs (e.g., /getUsers, /createOrder).

Chore

  • Dependabot Configuration: Added .github/dependabot.yml for automated dependency updates on a weekly schedule.

📦 Installation

npm install -g @mrjacket/smile

View Full CHANGELOG