foobara 0.0.81 → 0.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9fcec0cdbeb75a6ac186a698a2f88ae28b598ccaed336d64f969cd765b0c7a5
|
4
|
+
data.tar.gz: edcceb30a55fe4e2850bfbb00f48219c0dbb405ef39e103a499b9cac8ed363b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d7ad23aee91daf8e88449f6c22411111b32ad578444c67155093389fc2522002854dda79eaecabfa5b6a7e5854551aafcc9fd17ceaf86ce9e469090f2e17259
|
7
|
+
data.tar.gz: 29009427cdae16977b1c667090213f24e526d81a13a1a2442567833a4acc95d42fe5c19f88f2a339ee03b6e17549c4fd354f91fa27224230181a2bcd9a49b489
|
data/CHANGELOG.md
CHANGED
@@ -348,12 +348,16 @@ module Foobara
|
|
348
348
|
# TODO: reuse the model_base_class primary key if it has one...
|
349
349
|
primary_key = attributes_type.element_types.keys.first
|
350
350
|
|
351
|
+
model_module = unless scoped_full_path.empty?
|
352
|
+
scoped_full_name
|
353
|
+
end
|
354
|
+
|
351
355
|
entity_type = foobara_type_builder.type_for_declaration(
|
352
356
|
Util.remove_blank(
|
353
357
|
type: :entity,
|
354
358
|
name:,
|
355
359
|
model_base_class:,
|
356
|
-
model_module
|
360
|
+
model_module:,
|
357
361
|
attributes_declaration: attributes_type_declaration,
|
358
362
|
primary_key:,
|
359
363
|
description:,
|
@@ -15,7 +15,7 @@ module Foobara
|
|
15
15
|
Foobara::Model
|
16
16
|
end
|
17
17
|
|
18
|
-
# TODO:
|
18
|
+
# TODO: consider splitting this up into multiple desugarizers
|
19
19
|
def desugarize(strictish_type_declaration)
|
20
20
|
if strictish_type_declaration.key?(:model_module)
|
21
21
|
model_module = strictish_type_declaration[:model_module]
|