text: // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey
  // Please see LICENSE for license or visit https://github.com/taocpp/config/
  
  #ifndef TAO_CONFIG_SCHEMA_INTERNAL_OBJECT_HPP
  #define TAO_CONFIG_SCHEMA_INTERNAL_OBJECT_HPP
  
  #include "node.hpp"
  
  namespace tao::config::schema::internal
  {
     struct object : node
     {
        using node::node;
  
        json::value validate( const value& v ) const override
        {
           return v.is_object() ? ok() : error( v, "expected object" );
        }
     };
  
  }  // namespace tao::config::schema::internal
  
  #endif
  