Asset wrapping a parsed .schema.json.
More...
#include <schema.hpp>
|
|
| Schema (std::string_view json_content) |
| auto | type () const -> std::string_view override |
|
auto | title () const -> std::string_view |
|
auto | isValid () const noexcept -> bool |
|
auto | fields () const -> const std::vector< SchemaField > & |
|
auto | hasDefinition (std::string_view name) const noexcept -> bool |
|
auto | getDefinition (std::string_view name) const -> const std::vector< SchemaField > * |
|
auto | definitions () const -> const std::map< std::string, std::vector< SchemaField > > & |
| auto | discriminatorOf (std::string_view definition) const -> std::string_view |
|
| Asset (const Asset &)=delete |
|
auto | operator= (const Asset &) -> Asset &=delete |
|
auto | refCount () const noexcept -> uint32_t |
|
|
void | addRef () noexcept |
|
void | release () noexcept |
Asset wrapping a parsed .schema.json.
◆ discriminatorOf()
| auto assets::Schema::discriminatorOf |
( |
std::string_view | definition | ) |
const -> std::string_view |
|
nodiscard |
- Returns
- The x-toast-discriminator field name of a definition, or empty when none
◆ type()
| auto assets::Schema::type |
( |
| ) |
const -> std::string_view |
|
inlinenodiscardoverridevirtual |
The documentation for this class was generated from the following files:
- engine/src/toast/assets/schema.hpp
- engine/src/toast/assets/schema.cpp