Comments (5)
I am classifying this issue as a feature request instead of a bug and assigning it to @rubenfonseca.
from powertools-lambda-python.
Hi @MCR2019 thank you for opening this issue. It seems our top level OpenAPI object is only supporting strings at the moment.
Please notice that according to the spec, tags in Operations are just lists of strings. The only place where a Tag is an object with additional fields is on the top level OpenAPI object:
from aws_lambda_powertools.event_handler import APIGatewayRestResolver
from aws_lambda_powertools.event_handler.openapi.models import ExternalDocumentation, Tag
app = APIGatewayRestResolver(enable_validation=True)
@app.put("/example-resource", tags=["Example Tag"])
def put():
pass
if __name__ == "__main__":
print(
app.get_openapi_json_schema(
tags=[
Tag(
name="Example",
description="This is a description",
externalDocs=ExternalDocumentation(url="https://example.org", description="Example website"),
)
]
)
)
I'll be working on adding support for this.
from powertools-lambda-python.
Looking at this now
from powertools-lambda-python.
⚠️ COMMENT VISIBILITY WARNING⚠️
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
from powertools-lambda-python.
This is now released under 2.31.0 version!
from powertools-lambda-python.
Related Issues (20)
- List intersection action for conditions in feature flags HOT 16
- Feature request: Expand DataMasking utility to encrypt list, set, and tuple data type for better user excperience HOT 1
- Bug: openAPI generation - operation requestBody description only on schema output, not at higher level needed for html HOT 6
- Feature Request: ability to define additional response models in OpenAPI HOT 5
- Feature request: Add Canada - Calgary region to the Lambda Layers Deployment HOT 3
- Bug: AppSyncResolver Context not set in tests HOT 5
- Bug: Swagger UI doesn't load : Loading... with Uncaught SyntaxError HOT 9
- Docs: Invalid return type in middleware example HOT 4
- Feature request: Add ability to download OpenAPI spec HOT 4
- Feature request: Add support for S3 Batch Operations event HOT 7
- Static typing: Untyped event_source decorator with mypy --strict HOT 2
- Bug: Repository analytics is broken and not being marked as failling HOT 2
- Feature request: Improve error message when parser fails HOT 9
- Maintenance: Remove dev dependencies locked to Pydantic v1 in the Pydantic v2 workflow HOT 2
- Feature request: Publish AWS Lambda layers under /aws/service/list HOT 2
- [I Made This]: Creating a serverless API using AWS Lambda Powertools and CDK HOT 6
- bug: Swagger UI is breaking with certain characters HOT 5
- Feature: Event handler Swagger doesnt add 422 response to openapi when adding custom responses HOT 3
- Bug: Can't install with pyndantic >2.0 (despite documentation saying otherwise) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powertools-lambda-python.