@@ -2957,20 +2957,20 @@ <h3>Algorithm</h3>
2957
2957
< a > entry</ a > of < var > result</ var > .</ li >
2958
2958
</ ol >
2959
2959
</ li >
2960
- < li class ="changed "> For each key < var > nesting-key</ var > in < var > nests</ var >
2960
+ </ ol >
2961
+ </ li >
2962
+ < li id ="expansion-resolve-nest " class ="changed "> For each key < var > nesting-key</ var > in < var > nests</ var >
2963
+ < ol >
2964
+ < li > Initialize < var > nested values</ var > to the value of < var > nesting-key</ var >
2965
+ in < var > element</ var > , ensuring that it is an < a > array</ a > .</ li >
2966
+ < li > For each < var > nested value</ var > in < var > nested values</ var > :
2961
2967
< ol >
2962
- < li > Initialize < var > nested values</ var > to the value of < var > nesting-key</ var >
2963
- in < var > element</ var > , ensuring that it is an < a > array</ a > .</ li >
2964
- < li > For each < var > nested value</ var > in < var > nested values</ var > :
2965
- < ol >
2966
- < li > If < var > nested value</ var > is not a < a > map</ a > , or any key within
2967
- < var > nested value</ var > expands to < code > @value</ code > , an
2968
- < a data-link-for ="JsonLdErrorCode "> invalid @nest value</ a > error
2969
- has been detected and processing is aborted.</ li >
2970
- < li > Recursively repeat < a href ="#alg-expand-each-key-value "> step 13</ a >
2971
- using < var > nested value</ var > for < var > element</ var > .</ li >
2972
- </ ol >
2973
- </ li >
2968
+ < li > If < var > nested value</ var > is not a < a > map</ a > , or any key within
2969
+ < var > nested value</ var > expands to < code > @value</ code > , an
2970
+ < a data-link-for ="JsonLdErrorCode "> invalid @nest value</ a > error
2971
+ has been detected and processing is aborted.</ li >
2972
+ < li > Recursively repeat < a href ="#alg-expand-each-key-value "> step 13</ a >
2973
+ using < var > nested value</ var > for < var > element</ var > .</ li >
2974
2974
</ ol >
2975
2975
</ li >
2976
2976
</ ol >
@@ -6938,6 +6938,11 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
6938
6938
< a href ="#create-term-definition "> Create Term Definition algorithm</ a >
6939
6939
that remaining steps are skipped if the value of `@id` is `null`.
6940
6940
This is in response to < a href ="https://github.com/w3c/json-ld-api/issues/261 "> Issue 261</ a > .</ li >
6941
+ < li > Move step 13.15 of the expansion algorithm up one level to step < a href ="#expansion-resolve-nest "> 14</ a > of the
6942
+ < a href ="#expansion-algorithm "> Expansion algorithm</ a > ,
6943
+ as it had accidentally been set to run for every entry in the object, rather than
6944
+ after all entries had been expanded.
6945
+ This is in response to < a href ="https://github.com/w3c/json-ld-api/issues/262 "> Issue 262</ a > .</ li >
6941
6946
</ ul >
6942
6947
</ section >
6943
6948
0 commit comments