Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DX-1496] Refactor Blob Lang Methods Page For Indexing #5036

Merged
merged 39 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
90d758d
initial commit to extract parsing methods
Jul 9, 2024
79e8b4a
draft commit update headers
Jul 9, 2024
faee612
add parsing to menu
Jul 9, 2024
5241c05
update parsing headings styles
Jul 9, 2024
e45eb15
fix links
Jul 9, 2024
4078a76
add intro
Jul 9, 2024
35aa446
add encoding and encryption
Jul 9, 2024
9acd4ec
add JSON web tokens
Jul 9, 2024
59fb318
add geoip methods
Jul 9, 2024
5602791
add number manipulation methods
Jul 9, 2024
e9bc0b7
add regular expression methods
Jul 9, 2024
1f9a7e0
add timestamp methods
Jul 9, 2024
a285d61
format string manipulation methods
Jul 9, 2024
393b709
add string manipulation page
Jul 9, 2024
948154b
rename numbers file
Jul 9, 2024
8723d01
add type coercion methods
Jul 9, 2024
667b9b6
add draft commit for object and arrays content
Jul 9, 2024
a04149d
add formatted headers for objects and arrays
Jul 9, 2024
b504e5f
add objects & arrays intro
Jul 9, 2024
aa8c7be
add linking paragraph to general methods
Jul 9, 2024
85bf572
draft commit for adding links to types of methods
Jul 9, 2024
ad29056
add links to types of methods
Jul 9, 2024
bc8db8c
fix menu.yaml error
Jul 9, 2024
2f0a7a5
add methods overview page
Jul 9, 2024
f32167a
fix link refs in functions
Jul 9, 2024
a3728f4
fix link refs in arithmetic
Jul 9, 2024
a8d3158
fix links to methods detailed in bloblang overview
Jul 9, 2024
009f54e
add json web tokens methods to correct folder
Jul 9, 2024
1eea2d5
Update tyk-docs/data/menu.yaml
dcs3spp Jul 10, 2024
a8615b5
Update tyk-docs/data/menu.yaml
dcs3spp Jul 10, 2024
5cf8b60
Update tyk-docs/data/menu.yaml
dcs3spp Jul 10, 2024
4ff4ff7
add separate page for general methods
Jul 10, 2024
b8c5722
add general methods to list and move general menu item
Jul 11, 2024
e118e7c
manually fix merge conflict, merge latest changes from master and fix…
Jul 11, 2024
d251d8b
remove aliased methods file
Jul 11, 2024
3af8d60
Update overview.md
letzya Jul 11, 2024
5cb59ff
Update overview.md
letzya Jul 11, 2024
072ba6c
Update menu.yaml
letzya Jul 11, 2024
fc76c5d
fixed links I broke
letzya Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In [Bloblang]({< ref "/product-stack/tyk-streaming/guides/bloblang/overview" >})

When a mathematical operation is performed with two or more integer values [Bloblang]({< ref "/product-stack/tyk-streaming/guides/bloblang/overview" >}) will create an integer result, with the exception of division. However, if any number within a mathematical operation is a floating point then the result will be a floating point value.

In order to explicitly coerce numbers into integer types you can use the [.ceil(), .floor(), or .round()]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods#number_manipulation" >}}) methods.
In order to explicitly coerce numbers into integer types you can use the [.ceil(), .floor(), or .round()]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods/numbers" >}}) methods.

## Comparison

Expand All @@ -26,7 +26,7 @@ If you wish to reverse the boolean result of a complex query then simply place t

### Equality

The equality operators (`==` and `!=`) are valid to use against any value type. In order for arguments to be considered equal they must match in both their basic type (`string`, `number`, `null`, `bool`, etc) as well as their value. If you wish to compare mismatched value types then use [coercion methods]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods#type-coercion" >}}).
The equality operators (`==` and `!=`) are valid to use against any value type. In order for arguments to be considered equal they must match in both their basic type (`string`, `number`, `null`, `bool`, etc) as well as their value. If you wish to compare mismatched value types then use [coercion methods]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods/type-coercion" >}}).

Number arguments are considered equal if their value is the same when represented the same way, which means their underlying representations (integer, float, etc) do not need to match in order for them to be considered equal.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ root.foo = batch_size()

### content

Returns the full raw contents of the mapping target message as a byte array. When mapping to a JSON field the value should be encoded using the method [encode]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods#encode" >}}), or cast to a string directly using the method [string]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods#string" >}}), otherwise it will be base64 encoded by default.
Returns the full raw contents of the mapping target message as a byte array. When mapping to a JSON field the value should be encoded using the method [encode]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods/encoding-and-encryption#encode" >}}), or cast to a string directly using the method [string]({{< ref "/product-stack/tyk-streaming/guides/bloblang/methods/type-coercion#string" >}}), otherwise it will be base64 encoded by default.

#### Examples

Expand Down
Loading
Loading