o
    i                     @   s  d dl mZmZmZmZmZmZ d dlmZm	Z	 d dl
mZmZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ d
ddddgdd
iddiddd dddddd
iddddiddddddd
iddgdddddddgdd
idd d!d"d#dd$dd%idd&gd&dd
iidgidd'd(idd
idd
id)dd(gd*d+dd,idd-d
d.d/g d0d1id-gd2gd3d4dd,idd5ddd6d d d7id5gd2gd3g
ZG d8d9 d9eZerd:d:d:d;d<ed=ee d>ee d?eeeef  d@ef
dAdBZd:S erejZd:S ejZd:S )C    )TYPE_CHECKINGAnyDictListOptionalUnion)	BaseModelField)PYDANTIC_V2
ConfigDictExtramin_length_arg   )DataType)Discriminator)ExternalDocumentation)	Reference)XMLstringemail)typeformatobjectnamer   z$refz#/components/schemas/Addressintegerint32)r   r   minimum)r   addressage)r   required
properties)r   additionalPropertiesz!#/components/schemas/ComplexModelint64)idr   Puma)r   r#   )r   r    r   examplemessagecoded   iX  )r   r   maximum)r&   r'   allOfz#/components/schemas/ErrorModel	rootCausepropertyNamepetType)r   r-   )r   discriminatorr    r   zSA representation of a cat. Note that `Cat` will be used as the discriminator value.z#/components/schemas/PethuntingSkillzThe measured skill for huntinglazy)cluelessr0   adventurous
aggressive)r   descriptiondefaultenum)r   r    r   )r4   r*   zSA representation of a dog. Note that `Dog` will be used as the discriminator value.packSizez$the size of the pack the dog is from)r   r   r4   r5   r   c                   @   sB  e Zd ZU dZ	 dZeeeed f   e	d< 	 dZ
eeeed f   e	d< 	 dZeeeed f   e	d< 	 edddZeeed f  e	d< 	 edd	dZeeed f  e	d
< 	 dZeeed f  e	d< 	 edddZeeed f  e	d< 	 dZeeeeed f f  e	d< 	 dZeeeed f   e	d< 	 dZeeed f  e	d< 	 dZeeed f  e	d< 	 dZeeeeed f f  e	d< 	 dZeeeeed f f  e	d< 	 dZeeed ef  e	d< 	 dZeeed f  e	d< 	 dZeeed f  e	d< 	 dZeeed f  e	d< 	 	 dZeeeee f  e	d< 	 edFddie dZ!eee"  e	d< 	 dZ#ee" e	d< 	 edddZ$ee% e	d< 	 dZ&ee% e	d < 	 dZ'ee% e	d!< 	 dZ(ee% e	d"< 	 dZ)ee% e	d#< 	 edd$d%Z*ee+ e	d&< 	 edd$d%Z,ee+ e	d'< 	 dZ-ee e	d(< 	 edd$d%Z.ee+ e	d)< 	 edd$d%Z/ee+ e	d*< 	 dZ0ee e	d+< 	 edd$d%Z1ee+ e	d,< 	 edd$d%Z2ee+ e	d-< 	 edd$d%Z3ee+ e	d.< 	 edd$d%Z4ee+ e	d/< 	 dZ5eee  e	d0< 	 dZ6eeeee f  e	d1< 	 edd2dZ7ee e	d3< 	 dZ8ee e	d4< 	 dZ9ee e	d5< 	 dZ:eeed f  e	d6< 	 dZ;ee e	d7< 	 dZ<ee e	d8< 	 dZ=ee" e	d< 	 dZ>ee e	d9< 	 dZ?ee e	d:< 	 dZ@ee e	d;< 	 dZAeee"  e	d<< 	 	 dZBeeC e	d=< 	 dZDeeE e	d>< 	 dZFeeG e	d?< 	 dZHee" e	d@< 	 eIreJdAdBd<eKidCZLdS G dDdE dEZMdS )GSchemaaT  
    The Schema Object allows the definition of input and output data types.
    These types can be objects, but also primitives and arrays.
    This object is a superset of
    the [JSON Schema Specification Draft 2020-12](https://tools.ietf.org/html/draft-bhutton-json-schema-00).

    For more information about the properties,
    see [JSON Schema Core](https://tools.ietf.org/html/draft-wright-json-schema-00)
    and [JSON Schema Validation](https://tools.ietf.org/html/draft-wright-json-schema-validation-00).

    Unless stated otherwise, the property definitions follow those of JSON Schema
    and do not add any additional semantics.
    Where JSON Schema indicates that behavior is defined by the application (e.g. for
    annotations), OAS also defers the definition of semantics to the application
    consuming the OpenAPI document.
    Nr*   anyOfoneOfnot)r5   alias
schema_notif	schema_ifthenelseschema_elsedependentSchemasprefixItemsitemscontainsr    patternPropertiesr!   propertyNamesunevaluatedItemsunevaluatedPropertiesr   r5   r   r6   constg        )r5   gt
multipleOfr)   exclusiveMaximumr   exclusiveMinimumr   )r5   ge	maxLength	minLengthpatternmaxItemsminItemsuniqueItemsmaxContainsminContainsmaxPropertiesminPropertiesr   dependentRequiredr   schema_formatcontentEncodingcontentMediaTypecontentSchematitler4   
deprecatedreadOnly	writeOnlyexamplesr.   xmlexternalDocsr%   allowT)extrapopulate_by_namejson_schema_extrac                   @   s   e Zd ZejZdZdeiZdS )zSchema.ConfigTrd   N)	__name__
__module____qualname__r   rg   rh   allow_population_by_field_name	_examplesschema_extra rq   rq   e/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/openapi_pydantic/v3/v3_1/schema.pyConfig  s    rs   rq   )Nrk   rl   rm   __doc__r*   r   r   r   r   __annotations__r9   r:   r	   r=   r?   r@   rB   rC   r   strrD   rE   rF   r    rG   r!   boolrH   rI   rJ   r   r   r   r6   r   rK   rM   floatr)   rN   r   rO   rQ   intrR   rS   rT   rU   rV   rW   rX   rY   rZ   r   r[   r\   r]   r^   r_   r`   r4   r5   ra   rb   rc   rd   r.   r   re   r   rf   r   r%   r
   r   ro   model_configrs   rq   rq   rq   rr   r8   p   s   
 	 	    "#&



	
	
	

r8   N)strictfrom_attributescontextobjr{   r|   r}   returnc                C   s   d S )Nrq   )r~   r{   r|   r}   rq   rq   rr   schema_validate  s   r   ) typingr   r   r   r   r   r   pydanticr   r	   openapi_pydantic.compatr
   r   r   r   datatyper   r.   r   external_documentationr   	referencer   re   r   ro   r8   rw   rv   r   model_validate	parse_objrq   rq   rq   rr   <module>   s     
	

	

	c      S

