I'm encountering an issue with the Novu Python SDK while trying to create a layout. The API returns a 400 Bad Request error with the message indicating that the identifier should not be null or undefined and must be a string. However, the LayoutDto class in the SDK does not provide an option to pass the identifier, which seems to be required by the API.
Error Message
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.novu.co/v1/layouts {'message': ['identifier should not be null or undefined', 'identifier must be a string'], 'error': 'Bad Request', 'statusCode': 400}
👟 Reproduction steps
Create a LayoutDto instance without an identifier field.
Attempt to create a layout using the Novu Python SDK.
Observe the 400 Bad Request error.
👍 Expected behavior
The layout should be created successfully without a 400 Bad Request error.
👎 Actual Behavior with Screenshots
The API returns a 400 Bad Request error indicating that the identifier field is missing.
Novu version
Novu SaaS
npm version
NA
node version
NA
📃 Provide any additional context for the Bug.
Add an identifier field to the LayoutDto class in the Novu Python SDK, allowing users to pass this value when creating a layout.
👀 Have you spent some time to check if this bug has been raised before?
📜 Description
I'm encountering an issue with the Novu Python SDK while trying to create a layout. The API returns a 400 Bad Request error with the message indicating that the identifier should not be null or undefined and must be a string. However, the LayoutDto class in the SDK does not provide an option to pass the identifier, which seems to be required by the API.
Error Message
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.novu.co/v1/layouts {'message': ['identifier should not be null or undefined', 'identifier must be a string'], 'error': 'Bad Request', 'statusCode': 400}
👟 Reproduction steps
👍 Expected behavior
The layout should be created successfully without a 400 Bad Request error.
👎 Actual Behavior with Screenshots
The API returns a 400 Bad Request error indicating that the identifier field is missing.
Novu version
Novu SaaS
npm version
NA
node version
NA
📃 Provide any additional context for the Bug.
Add an identifier field to the LayoutDto class in the Novu Python SDK, allowing users to pass this value when creating a layout.
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
Yes I am willing to submit a PR!