How to use the serpyco.StringFormat 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
"$ref": "#/definitions/UserSchema_exclude_first_name_last_name_email_address"
                    },
                },
            },
            "required": ["item_nb", "items", "pagination"],
            "description": "A docstring to prevent auto generated docstring",
        },
        "UserSchema_exclude_id": {
            "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},
            },
            "required": [
                "company",
                "display_name",
                "email_address",
                "first_name",
                "last_name",
                "username",
            ],
            "description": "A docstring to prevent auto generated docstring",
        },
        "NoContentSchema": {
            "type": "object",
            "properties": {},
            "description": "A docstring to prevent auto generated docstring",
        },

serpyco

Fast serialization of dataclasses using Cython

MIT
Latest version published 7 months ago

Package Health Score

53 / 100
Full package analysis