Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
Validation.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <orbit/routing/Router.hpp>
#include <vector>
#include <string>
Include dependency graph for Validation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  orbit::middleware::SchemaField
 Represents a field in a validation schema. More...
 

Namespaces

namespace  orbit
 
namespace  orbit::middleware
 

Enumerations

enum class  orbit::middleware::JsonType {
  orbit::middleware::JsonType::STRING , orbit::middleware::JsonType::NUMBER , orbit::middleware::JsonType::BOOLEAN , orbit::middleware::JsonType::OBJECT ,
  orbit::middleware::JsonType::ARRAY
}
 Enumeration of JSON data types. More...
 

Functions

routing::Middleware orbit::middleware::validate_json (const std::vector< SchemaField > &schema)
 Returns a middleware that parses and validates a JSON request body.