Advanced
OpenAPI Specification Generation
Generate a full OpenAPI specification from a class-based description.
📝 Conteúdo do Prompt
Based on the provided Ruby class describing a 'UserSubscription' model with attributes for plan tiers, renewal dates, and payment methods, generate a complete OpenAPI 3.0.0 YAML specification. Ensure all data types are correctly mapped, provide example values for the schema, and define standard error responses for 400, 401, and 500 status codes.