asdf_pydantic.model
===================

.. py:module:: asdf_pydantic.model


Classes
-------

.. autoapisummary::

   asdf_pydantic.model.AsdfPydanticModel


Module Contents
---------------

.. py:class:: AsdfPydanticModel

   Bases: :py:obj:`pydantic.BaseModel`


   ASDF Serialization and Deserialization:
       Serialize to ASDF yaml tree is done with the
       py:classmethod`AsdfPydanticModel.asdf_yaml_tree()` and deserialize to an
       AsdfPydanticModel object with py:meth`AsdfPydanticModel.parse_obj()`.


   .. py:attribute:: _tag
      :type:  ClassVar[str | asdf.extension.TagDefinition]


   .. py:attribute:: model_config


   .. py:method:: asdf_yaml_tree() -> dict


   .. py:method:: get_tag_definition()
      :classmethod:



   .. py:method:: get_tag_uri()
      :classmethod:



   .. py:method:: model_asdf_schema(by_alias: bool = True, ref_template: str = DEFAULT_ASDF_SCHEMA_REF_TEMPLATE, schema_generator: type[asdf_pydantic.schema.GenerateAsdfSchema] = GenerateAsdfSchema)
      :classmethod:


      Get the ASDF schema definition for this model.



   .. py:method:: schema_asdf(*, metaschema: str = GenerateAsdfSchema.schema_dialect, **kwargs) -> str
      :classmethod:


      Get the ASDF schema definition for this model.

      Parameters
      ----------
      metaschema, optional
          A metaschema URI



