Skip to content

generator appends "1" to two components #827

Answered by koxudaxi
azatoth asked this question in Q&A
Discussion options

You must be logged in to vote

@azatoth
I'm sorry for my too-late reply.
I have tested the shcema.
But, I can't find the components.
I guess the leatest version is resolved the problem.

# generated by datamodel-codegen:
#   filename:  Launch Library (v2.2.0).yaml
#   timestamp: 2023-01-18T13:01:37+00:00

from __future__ import annotations

from datetime import date, datetime
from typing import List, Optional
from uuid import UUID

from pydantic import AnyUrl, BaseModel, Field, conint, constr


class Agency(BaseModel):
    id: int
    url: AnyUrl
    name: constr(max_length=200)
    featured: Optional[bool] = None
    type: Optional[constr(max_length=255)] = None
    country_code: Optional[constr(max_length=1048)] = None

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by koxudaxi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants