Skip to content
Skillv1.0.0

grape-swagger-entity

Adapter for grape-swagger that parses Grape::Entity classes into OpenAPI schema definitions.

by ruby-grape(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from ruby-grape/grape-swagger-entity (AGENTS.md). Install upstream with npx skills add ruby-grape/grape-swagger-entity. Copyright stays with the author.

grape-swagger-entity

Adapter for grape-swagger that parses Grape::Entity classes into OpenAPI schema definitions.

Quick Reference

bundle install          # Install dependencies
bundle exec rspec       # Run tests
bundle exec rubocop     # Run linter
bundle exec rubocop -a  # Auto-fix linter issues

Key Constraints

  • Ruby >= 3.0
  • All files must start with # frozen_string_literal: true
  • CHANGELOG.md entry required for every PR (danger enforces this)

Documentation

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/ruby-grape-grape-swagger-entity-grape-swagger-entity/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

ruby-grape-grape-swagger-entity-grape-swagger-entity.ocm.jsonjson
{
  "ocm": "1",
  "id": "ruby-grape-grape-swagger-entity-grape-swagger-entity",
  "kind": "skill",
  "name": "grape-swagger-entity",
  "description": "Adapter for grape-swagger that parses Grape::Entity classes into OpenAPI schema definitions.",
  "publisher": "ruby-grape",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Adapter for grape-swagger that parses Grape::Entity classes into OpenAPI schema definitions."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/ruby-grape/grape-swagger-entity",
      "path": "AGENTS.md",
      "ref": "2c56845b726f8882fe4cc6dde48ebd83b7c7cea4",
      "url": "https://github.com/ruby-grape/grape-swagger-entity/blob/2c56845b726f8882fe4cc6dde48ebd83b7c7cea4/AGENTS.md",
      "key": "ruby-grape/grape-swagger-entity/AGENTS.md"
    }
  },
  "instructions": "# grape-swagger-entity\n\nAdapter for grape-swagger that parses Grape::Entity classes into OpenAPI schema definitions.\n\n## Quick Reference\n\n```bash\nbundle install          # Install dependencies\nbundle exec rspec       # Run tests\nbundle exec rubocop     # Run linter\nbundle exec rubocop -a  # Auto-fix linter issues\n```\n\n## Key Constraints\n\n- Ruby >= 3.0\n- All files must start with `# frozen_string_literal: true`\n- CHANGELOG.md entry required for every PR (danger enforces this)\n\n## Documentation\n\n- [Testing Patterns](docs/testing.md)\n- [Contributing Guidelines](docs/contributing.md)\n- [Architectu",
  "cost": {
    "context_tokens": 158
  }
}

Fetch it by URL: GET /api/v1/registry/ruby-grape-grape-swagger-entity-grape-swagger-entity/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.