[#BloombergLP-baljsn-EncodeImplUtil-validate-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil.adoc[EncodeImplUtil]::validate
:relfileprefix: ../../../
:mrdocs:

`validate` overloads

== Synopses

Declared in `&lt;baljsn&lowbar;encodeimplutil&period;h&gt;`

Determine if the specified `value` having the specified `bdlat` `category` satisfies the requirements for encoding using this component&period; If the `value` meets the encoding requirements, return 0, otherwise load an unspecified, human&hyphen;readable description of the requirements that are not satisfied by the `value` and return a non&hyphen;zero value&period; For values satisfying the `bdlat` `Choice` type&hyphen;category concept, the value of the `selectionId` attribute must not be undefined&period; For values satisfying the requirements of other `bdlat` type&hyphen;category concepts, there are no further requirements for encoding using this component&period; See the package&hyphen;level documentation of `bdlat` for an introduction to the requirements of `bdlat` type&hyphen;category concepts&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
int
xref:BloombergLP/baljsn/EncodeImplUtil/validate-06.adoc[validate](
    std::ostream* logStream,
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/Choice.adoc[bdlat&lowbar;TypeCategory::Choice] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil/validate-06.adoc[_» more&period;&period;&period;_]#

Same as the preceding `validate` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class CATEGORY&gt;
static
int
xref:BloombergLP/baljsn/EncodeImplUtil/validate-0e.adoc[validate](
    std::ostream* logStream,
    TYPE const& value,
    CATEGORY category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil/validate-0e.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
