How to use the serpyco.StringFormat.EMAIL function in serpyco

To help you get started, we’ve selected a few serpyco examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algoo / hapic / tests / func / fake_api / common_serpyco.py View on Github external
"description": "A docstring to prevent auto generated docstring",
        },
        "NoContentSchema": {
            "type": "object",
            "properties": {},
            "description": "A docstring to prevent auto generated docstring",
        },
        "UserSchema": {
            "type": "object",
            "properties": {
                "first_name": {"type": "string"},
                "last_name": {"type": "string"},
                "display_name": {"type": "string"},
                "company": {"type": "string"},
                "username": {"type": "string", "pattern": "[\\w-]+"},
                "email_address": {"type": "string", "format": StringFormat.EMAIL},
                "id": {"type": "integer"},
            },
            "required": [
                "company",
                "display_name",
                "email_address",
                "first_name",
                "last_name",
                "username",
            ],
            "description": "A docstring to prevent auto generated docstring",
        },
        "AboutResponseSchema": {
            "type": "object",
            "properties": {
                "version": {"type": "string"},

serpyco

Fast serialization of dataclasses using Cython

MIT
Latest version published 6 months ago

Package Health Score

53 / 100
Full package analysis