Skip to content

Conversation

@apolukhin
Copy link
Member

The change produces error

Traceback (most recent call last):
  File "/data/code/realmedium_sample/third_party/userver/chaotic/bin/../chaotic/main.py", line 297, in <module>
    main()
  File "/data/code/realmedium_sample/third_party/userver/chaotic/bin/../chaotic/main.py", line 264, in main
    types = gen.generate_types(schemas, external_schemas={})
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 132, in generate_types
    self._state.types[fq_cpp_name] = self._generate_type(
                                     ^^^^^^^^^^^^^^^^^^^^
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 244, in _generate_type
    cpp_type = method(self, fq_cpp_name, schema)  # type: ignore
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 639, in _gen_object
    field_name: self._gen_field(
                ^^^^^^^^^^^^^^^^
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 515, in _gen_field
    type_ = self._generate_type(name, schema)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 245, in _generate_type
    self._validate_type(cpp_type)
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 164, in _validate_type
    self._raise(
  File "/data/code/realmedium_sample/third_party/userver/chaotic/chaotic/back/cpp/translator.py", line 174, in _raise
    raise TranslatorError(
chaotic.back.cpp.translator.TranslatorError: 
===============================================================
Unhandled error while processing /data/code/realmedium_sample/docs/api/api.yaml
Path "/components/schemas/Article/properties/createdAt", Format "jsonschema"
Error:
Include file "userver/chaotic/io/userver/storages/postgres/time_point_tz.hpp" not found, tried paths:

===============================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants