A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
describe.cc File Reference
#include "a11/actions/describe.h"
#include <algorithm>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <absl/status/status.h>
#include <absl/status/status_macros.h>
#include <absl/status/statusor.h>
#include <absl/strings/ascii.h>
#include <absl/strings/str_cat.h>
#include <absl/strings/str_split.h>
#include <nlohmann/json.hpp>
#include "a11/actions/internal/pattern.h"
#include "a11/actions/registry.h"
#include "a11/actions/schema.h"
#include "a11/json_codec.h"
#include "a11/percent.h"

Namespaces

namespace  a11
 
namespace  a11::actions
 

Functions

bool a11::actions::SchemaQueryAccepts (const SchemaQuery &query, std::string_view name)
 Whether name matches query's name filters.
 
absl::StatusOr< SchemaQuery > a11::actions::ParseSchemaQuery (std::string_view encoded)
 Parses a SchemaQuery from the request port's JSON.
 
absl::StatusOr< SchemaQuery > a11::actions::ParseSchemaQueryString (std::string_view query)
 Parses a SchemaQuery from a URL query string.
 
nlohmann::json a11::actions::SchemaToJson (const ActionSchema &schema, bool runnable, PortView ports=PortView::kCallable)
 One schema as an actions entry.
 
nlohmann::json a11::actions::RegistryToJson (const ActionRegistry &registry, const SchemaQuery &query)
 A whole document: every schema in registry that query accepts.
 
absl::StatusOr< std::string > a11::actions::RegistryToJsonText (const ActionRegistry &registry, const SchemaQuery &query)
 RegistryToJson as text, or why it could not be encoded.
 
absl::StatusOr< std::string > a11::actions::SchemaToJsonText (const ActionSchema &schema, bool runnable, PortView ports=PortView::kCallable)
 One schema as a whole document, for a route that answers with one.
 
absl::StatusOr< ActionSchema > a11::actions::SchemaFromJson (const nlohmann::json &entry)
 The schema an actions entry was written from.
 
absl::StatusOr< ActionSchema > a11::actions::SchemaFromJsonText (std::string_view encoded)
 SchemaFromJson, parsing encoded first.
 
absl::StatusOr< std::vector< nlohmann::json > > a11::actions::SchemasInDocument (const nlohmann::json &document)
 The actions entries of document, or why there are none to read.