-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
version_3Version 3 Specific featureVersion 3 Specific feature
Milestone
Description
first of all love the client, really makes working with wiremock in python simple. :)
would be great if if the models for the library were typed more strongly, for autocomplete and all the other beneifits.
so instead of doing
@add_metaclass(BaseEntityMetaType)
class RequestResponseDefinition(BaseAbstractEntity):
status = JsonProperty("status")
transformers = JsonProperty("transformers", klass=list)
from_configured_stub = JsonProperty("fromConfiguredStub") # will be true/false
transformer_parameters = JsonProperty("transformerParameters", klass=dict)
would be
class RequestResponseDefinition(BaseAbstractEntity):
status = str
transformers = List[Transformer]
from_configured_stub = bool
transformer_parameters = dict[TransformerPrameter]
this can be achieved either with dataclasses or any other way (pydantic models, attr , etc)
andreroggeri and lindycoder
Metadata
Metadata
Assignees
Labels
version_3Version 3 Specific featureVersion 3 Specific feature
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
platinummonkey commentedon Nov 9, 2020
PR's welcome now that PY2 is EOL :)
platinummonkey commentedon Oct 22, 2021
will be picking this up :) have some openapi specs for which to work off :)
lindycoder commentedon Jan 26, 2022
Hello!
If proper typing is coming i suggest making it mypy compatible , if that wasn't already the plan :)