| 108 | } |
| 109 | |
| 110 | Result<std::string_view> GetStringView(const rj::Value& str) { |
| 111 | if (!str.IsString()) { |
| 112 | return Status::Invalid("field was not a string"); |
| 113 | } |
| 114 | return std::string_view{str.GetString(), str.GetStringLength()}; |
| 115 | } |
| 116 | |
| 117 | class SchemaWriter { |
| 118 | public: |
no test coverage detected