-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handling different string formats in RESTler #369
Comments
'404':
description: Can't find ....
x-klm-docs-reviewed: true
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
message:
type: string
someId:
type: string
format: uuid
code:
type: string
createdAt:
type: string
format: date-time
requestId:
type: string
format: uuid
docUrl:
type: string
format: uri |
In addition to the above questions, it looks like this feature of dictionary is not yet implemented, I get the following error:
$ Restler --version |
Hi Mehdi, The issue is open, so this feature is not yet implemented. Any dictionary entries used today will continue to work for backwards compatibility (such as restler_fuzzable_datetime). For your last question, let's assume the above schema is for the request body instead of the response. Then, yes, RESTler would generate those entries even if they are not defined in the dictionary (similar to how today it generates restler_custom_payload_uuid4_suffix entries). Thanks, Marina |
Any value can be used as the "format" value for string types in an OpenAPI specification. To better support domain-specific formats, RESTler could handle this in a generic way by generating a new dictionary entry, which the user could then populate. If empty, it would be treated as a
restler_fuzzable_string
.For example:
restler_custom_payload_format("date")
restler_custom_payload_format("uri")
and in the dictionary:
The text was updated successfully, but these errors were encountered: