The-Lum
3dba008497
feat: add new JSON builtin function (%json_merge
)
2024-05-05 09:21:07 +00:00
The-Lum
dcfe17b73c
feat: add new JSON builtin function (%json_set
)
...
From this request:
- https://github.com/plantuml/plantuml/issues/328#issuecomment-2089276726
2024-05-03 17:06:30 +00:00
The-Lum
6c4eaebd8f
fix: add int
and string
management on %json_add
...
That fixes:
- https://github.com/plantuml/plantuml/issues/328#issuecomment-2071079413
Here is a fix for `int` and `string`, in order to manage:
```puml
%json_add({"age" : 30}, name, 123) '=> {"age":30,"name":123}
```
```puml
%json_add({"age" : 30}, name, Sally) '=> {"age":30,"name":"Sally"}
```
[FYI @philCryoport]
Reagrds,
Th.
2024-04-24 19:52:11 +00:00
The-Lum
24239ff0bd
feat: add new JSON builtin functions (%str2json
, %json_add
and %json_remove
)
...
From those requests:
- https://forum.plantuml.net/15436/allow-update-json-object-or-array-value
- https://forum.plantuml.net/17474/modify-json-variables-in-preprocessor
- https://forum.plantuml.net/18418/request-%25set_json_keys-function-json-writing-capabilities
- #328
- #1733
2024-04-15 05:33:02 +00:00
The-Lum
f3ee15f97b
feat: add %splitstrregex
builtin function
...
From this request:
- https://forum.plantuml.net/18827/%25splitstr-please-add-regex-support-as-second-argument
Ack. & Ref.:
- https://forum.plantuml.net/15374/delimited-string-split-into-an-array
- https://forum.plantuml.net/18827/%25splitstr-please-add-regex-support-as-second-argument
- https://www.javacodeexamples.com/java-stringtokenizer-using-regex-pattern/3570
2024-04-09 14:04:18 +00:00
Arnaud Roques
f385bc0dba
chore: use Collections.emptyList() instead of new ArrayList()
2024-02-24 12:03:21 +01:00
Arnaud Roques
3cc68235dd
refactor: prepare preprocessor error improvement
2024-02-22 20:28:03 +01:00
Arnaud Roques
a48dd52d9f
refactor: prepare preprocessor error improvement (almost finished :-)
...
https://github.com/plantuml/plantuml/pull/1668
2024-02-22 20:06:59 +01:00
The-Lum
fea505ab77
feat: add %get_all_stdlib
builtin function
2024-02-22 15:11:26 +00:00
Arnaud Roques
be69889e7f
tests: fix stdlib test
...
https://github.com/plantuml/plantuml/pull/1692#issuecomment-1952831187
2024-02-21 22:23:31 +01:00
The-Lum
8fe9faec1b
tests: add not working example about stdlib
2024-02-16 21:59:49 +00:00
The-Lum
53bcc028cf
fix: typo on GetAllThemeTest
filename
2024-02-14 06:19:34 +00:00
The-Lum
ab09e2ef1f
feat: add %get_all_theme
builtin function
2024-02-14 06:14:19 +00:00
The-Lum
e11d974ce5
refactor: place net.sourceforge.plantuml.test
on test.utils
...
Create `test` folder with:
- `example`
- `utils`
And put all `net.sourceforge.plantuml.test` on `test.utils`.
_[no other change]_
2024-02-12 19:13:02 +00:00
The-Lum
3bd3edb740
feat: Random
function: add test and private declaration
...
Add:
- `RandomFunctionTest` test file
- private declaration for random lib.
Ref.:
- #1667
Improve:
- dbaf8ac2cd
- #1668
2024-02-03 14:06:49 +00:00
The-Lum
5c7245623a
test refactor: simplify test using TimTestUtils
...
For: `Chr` and `Ord`
2023-12-08 21:44:05 +00:00
The-Lum
3f836a44cc
fix: allow (int
corresponding of) unicode value for Chr
builtin fct
...
That fixes partialy #1571 .
2023-12-08 21:20:22 +00:00
The-Lum
1cb61d5609
fix: allow different type inside array for GetJsonKey
builtin fct
2023-12-08 21:08:36 +00:00
The-Lum
a570cea56f
feat: Allow JSON Array on JSON preproc.
...
(affectation on plantuml variable, on foreach, ...)
2023-11-27 20:02:54 +00:00
The-Lum
f91e0db9eb
test: first commit for some unit tests of tim/stdlib
functions
...
- `AlwaysFalse`
- `AlwaysTrue`
- `Dec2hex`
- `Feature`
- `GetJsonKey`
- `GetJsonType`
- `Hex2dec`
- `Lower`
- `Size`
- `Upper`
- TBC...
2023-09-17 19:18:35 +00:00
The-Lum
957726fda0
test: create _TemplateStdlibTest
to help test of tim/stdlib
2023-09-16 08:26:32 +00:00
The-Lum
ec260ff0c9
test: add assert help function to test tim/stdlib
2023-09-16 08:18:20 +00:00
The-Lum
63da3270a6
test: add tests for the builtin function %chr
...
_[TODO: fix `%chr` to allow Unicode chars, the corresponding tests are here.]_
2023-07-27 15:41:03 +00:00
The-Lum
8742e77f3c
fix: ord
builtin function: allow Unicode values, add test
...
By this indication:
- https://github.com/plantuml/plantuml/pull/1487#issuecomment-1648082049
Fix `ord` builtin function:
- allow Unicode values
- add tests
2023-07-26 11:27:56 +00:00
Arnaud Roques
ff6e71e626
fix: only allow to read some environment variables
2023-06-13 12:55:32 +02:00
Arnaud Roques
75835ce2a0
Packages move and bugfix
2023-02-22 19:43:48 +01:00
Aljoscha Rittner
e195987b78
Authentication for SURL with BasicAuth and OAuth2 (password and client_credentials)
2021-11-22 12:41:44 +01:00